Lines Matching refs:operator
92 constexpr Nullable& operator=(const Nullable& other) = default;
95 constexpr Nullable& operator=(Nullable&& other) = default;
107 constexpr T* operator->() { return &*mOpt; }
108 constexpr const T* operator->() const { return &*mOpt; }
109 constexpr T& operator*() { return *mOpt; }
110 constexpr const T& operator*() const { return *mOpt; }
113 explicit constexpr operator bool() const { return hasValue(); }
115 constexpr Nullable& operator=(decltype(nullptr)) {
120 constexpr Nullable& operator=(T value) {
179 constexpr T* operator->() { return &mValue; }
180 constexpr const T* operator->() const { return &mValue; }
181 constexpr T& operator*() { return mValue; }
182 constexpr const T& operator*() const { return mValue; }
185 explicit constexpr operator bool() const { return hasValue(); }
187 constexpr Nullable& operator=(const Nullable& other) = default;
188 constexpr Nullable& operator=(Nullable&& other) {
193 constexpr Nullable& operator=(decltype(nullptr)) {
198 constexpr Nullable& operator=(T value) {
220 constexpr bool operator==(const Nullable<T>& lhs, decltype(nullptr)) {
224 constexpr bool operator!=(const Nullable<T>& lhs, decltype(nullptr)) {
229 constexpr bool operator==(decltype(nullptr), const Nullable<T>& rhs) {
233 constexpr bool operator!=(decltype(nullptr), const Nullable<T>& rhs) {
238 constexpr bool operator==(const Nullable<T>& lhs, const Nullable<U>& rhs) {
242 constexpr bool operator!=(const Nullable<T>& lhs, const Nullable<U>& rhs) {
247 constexpr bool operator==(const Nullable<T>& lhs, const U& rhs) {
251 constexpr bool operator!=(const Nullable<T>& lhs, const U& rhs) {
256 constexpr bool operator==(const T& lhs, const Nullable<U>& rhs) {
260 constexpr bool operator!=(const T& lhs, const Nullable<U>& rhs) {