Lines Matching refs:is_null_
42 : is_null_(false), value_(value) {} in OptionalStorage()
46 : is_null_(false), value_(std::move(value)) {} in OptionalStorage()
51 : is_null_(false), value_(std::forward<Args>(args)...) {} in OptionalStorage()
56 if (!is_null_) in ~OptionalStorage()
60 bool is_null_ = true; member
77 : is_null_(false), value_(value) {}
81 : is_null_(false), value_(std::move(value)) {}
86 : is_null_(false), value_(std::forward<Args>(args)...) {}
93 bool is_null_ = true;
128 if (!other.storage_.is_null_)
133 if (!other.storage_.is_null_)
155 if (other.storage_.is_null_) {
165 if (other.storage_.is_null_) {
184 DCHECK(!storage_.is_null_);
191 DCHECK(!storage_.is_null_);
207 constexpr explicit operator bool() const { return !storage_.is_null_; }
209 constexpr bool has_value() const { return !storage_.is_null_; }
214 DCHECK(!storage_.is_null_);
220 DCHECK(!storage_.is_null_);
227 DCHECK(!storage_.is_null_);
233 DCHECK(!storage_.is_null_);
244 return storage_.is_null_ ? static_cast<T>(std::forward<U>(default_value))
255 return storage_.is_null_ ? static_cast<T>(std::forward<U>(default_value))
260 if (storage_.is_null_ && other.storage_.is_null_)
263 if (storage_.is_null_ != other.storage_.is_null_) {
264 if (storage_.is_null_) {
274 DCHECK(!storage_.is_null_ && !other.storage_.is_null_);
291 DCHECK(storage_.is_null_);
293 storage_.is_null_ = false;
297 DCHECK(storage_.is_null_);
299 storage_.is_null_ = false;
304 DCHECK(storage_.is_null_);
306 storage_.is_null_ = false;
310 if (storage_.is_null_)
317 if (storage_.is_null_)
324 if (storage_.is_null_)
327 storage_.is_null_ = true;