Home | History | Annotate | Download | only in include

Lines Matching full:has_value

128     constexpr bool has_value() const noexcept;
287 constexpr bool has_value() const noexcept
317 _LIBCPP_ASSERT(!has_value(), "__construct called for engaged __optional_storage");
326 if (__opt.has_value())
334 if (this->__engaged_ == __opt.has_value())
393 constexpr bool has_value() const noexcept
408 _LIBCPP_ASSERT(!has_value(), "__construct called for engaged __optional_storage");
419 if (__opt.has_value())
427 if (has_value() == __opt.has_value())
429 if (has_value())
434 if (has_value())
775 if (this->has_value())
841 if (this->has_value() == __opt.has_value())
844 if (this->has_value())
849 if (this->has_value())
867 _LIBCPP_ASSERT(this->has_value(), "optional operator-> called for disengaged value");
880 _LIBCPP_ASSERT(this->has_value(), "optional operator-> called for disengaged value");
893 _LIBCPP_ASSERT(this->has_value(), "optional operator* called for disengaged value");
902 _LIBCPP_ASSERT(this->has_value(), "optional operator* called for disengaged value");
911 _LIBCPP_ASSERT(this->has_value(), "optional operator* called for disengaged value");
920 _LIBCPP_ASSERT(this->has_value(), "optional operator* called for disengaged value");
925 constexpr explicit operator bool() const noexcept { return has_value(); }
927 using __base::has_value;
933 if (!this->has_value())
941 if (!this->has_value())
949 if (!this->has_value())
957 if (!this->has_value())
970 return this->has_value() ? this->__get() :
982 return this->has_value() ? _VSTD::move(this->__get()) :