Lines Matching refs:has_value
126 constexpr bool has_value() const noexcept;
282 constexpr bool has_value() const noexcept
312 _LIBCPP_ASSERT(!has_value(), "__construct called for engaged __optional_storage");
321 if (__opt.has_value())
329 if (this->__engaged_ == __opt.has_value())
388 constexpr bool has_value() const noexcept
403 _LIBCPP_ASSERT(!has_value(), "__construct called for engaged __optional_storage");
414 if (__opt.has_value())
422 if (has_value() == __opt.has_value())
424 if (has_value())
429 if (has_value())
694 if (this->has_value())
758 if (this->has_value() == __opt.has_value())
761 if (this->has_value())
766 if (this->has_value())
784 _LIBCPP_ASSERT(this->has_value(), "optional operator-> called for disengaged value");
797 _LIBCPP_ASSERT(this->has_value(), "optional operator-> called for disengaged value");
810 _LIBCPP_ASSERT(this->has_value(), "optional operator* called for disengaged value");
819 _LIBCPP_ASSERT(this->has_value(), "optional operator* called for disengaged value");
828 _LIBCPP_ASSERT(this->has_value(), "optional operator* called for disengaged value");
837 _LIBCPP_ASSERT(this->has_value(), "optional operator* called for disengaged value");
842 constexpr explicit operator bool() const noexcept { return has_value(); }
844 using __base::has_value;
850 if (!this->has_value())
858 if (!this->has_value())
866 if (!this->has_value())
874 if (!this->has_value())
887 return this->has_value() ? this->__get() :
899 return this->has_value() ? _VSTD::move(this->__get()) :