Lines Matching refs:contained_val
362 constexpr const T& contained_val() const& { return OptionalBase<T>::storage_.value_; } in contained_val() function in std::experimental::optional
364 …OPTIONAL_MUTABLE_CONSTEXPR T&& contained_val() && { return std::move(OptionalBase<T>::storage_.val… in contained_val() function in std::experimental::optional
365 OPTIONAL_MUTABLE_CONSTEXPR T& contained_val() & { return OptionalBase<T>::storage_.value_; } in contained_val() function in std::experimental::optional
367 T& contained_val() & { return OptionalBase<T>::storage_.value_; } in contained_val() function in std::experimental::optional
368 T&& contained_val() && { return std::move(OptionalBase<T>::storage_.value_); } in contained_val() function in std::experimental::optional
371 constexpr const T& contained_val() const { return OptionalBase<T>::storage_.value_; } in contained_val() function in std::experimental::optional
372 T& contained_val() { return OptionalBase<T>::storage_.value_; } in contained_val() function in std::experimental::optional
447 else if (initialized() == true && rhs.initialized() == true) contained_val() = *rhs; in operator =()
456 … else if (initialized() == true && rhs.initialized() == true) contained_val() = std::move(*rhs); in operator =()
468 if (initialized()) { contained_val() = std::forward<U>(v); } in operator =()
512 return TR2_OPTIONAL_ASSERTED_EXPRESSION(initialized(), contained_val()); in operator *()
517 return contained_val(); in operator *()
522 return constexpr_move(contained_val()); in operator *()
526 …return initialized() ? contained_val() : (throw bad_optional_access("bad optional access"), contai… in value()
530 …return initialized() ? contained_val() : (throw bad_optional_access("bad optional access"), contai… in value()
535 return std::move(contained_val()); in value()
546 return TR2_OPTIONAL_ASSERTED_EXPRESSION(initialized(), contained_val()); in operator *()
551 return contained_val(); in operator *()
555 …return initialized() ? contained_val() : (throw bad_optional_access("bad optional access"), contai… in value()
559 …return initialized() ? contained_val() : (throw bad_optional_access("bad optional access"), contai… in value()
577 …return *this ? constexpr_move(const_cast<optional<T>&>(*this).contained_val()) : detail_::convert<… in value_or()
585 …return *this ? constexpr_move(const_cast<optional<T>&>(*this).contained_val()) : detail_::convert<… in value_or()