Lines Matching refs:OptionalBase

342 using OptionalBase = typename std::conditional<  typedef
351 class optional : private OptionalBase<T>
357 constexpr bool initialized() const noexcept { return OptionalBase<T>::init_; } in initialized()
358 T* dataptr() { return std::addressof(OptionalBase<T>::storage_.value_); } in dataptr()
359 …constexpr const T* dataptr() const { return detail_::static_addressof(OptionalBase<T>::storage_.va… in dataptr()
362 constexpr const T& contained_val() const& { return OptionalBase<T>::storage_.value_; } in contained_val()
364 …OPTIONAL_MUTABLE_CONSTEXPR T&& contained_val() && { return std::move(OptionalBase<T>::storage_.val… in contained_val()
365 OPTIONAL_MUTABLE_CONSTEXPR T& contained_val() & { return OptionalBase<T>::storage_.value_; } in contained_val()
367 T& contained_val() & { return OptionalBase<T>::storage_.value_; } in contained_val()
368 T&& contained_val() && { return std::move(OptionalBase<T>::storage_.value_); } in contained_val()
371 constexpr const T& contained_val() const { return OptionalBase<T>::storage_.value_; } in contained_val()
372 T& contained_val() { return OptionalBase<T>::storage_.value_; } in contained_val()
377 OptionalBase<T>::init_ = false; in clear()
383 assert(!OptionalBase<T>::init_); in initialize()
385 OptionalBase<T>::init_ = true; in initialize()
391 assert(!OptionalBase<T>::init_); in initialize()
393 OptionalBase<T>::init_ = true; in initialize()
400 constexpr optional() noexcept : OptionalBase<T>() {}; in optional()
401 constexpr optional(nullopt_t) noexcept : OptionalBase<T>() {}; in optional()
404 : OptionalBase<T>() in optional()
408 OptionalBase<T>::init_ = true; in optional()
413 : OptionalBase<T>() in optional()
417 OptionalBase<T>::init_ = true; in optional()
421 constexpr optional(const T& v) : OptionalBase<T>(v) {} in optional()
423 constexpr optional(T&& v) : OptionalBase<T>(constexpr_move(v)) {} in optional()
427 : OptionalBase<T>(in_place_t{}, constexpr_forward<Args>(args)...) {} in optional()
431 : OptionalBase<T>(in_place_t{}, il, constexpr_forward<Args>(args)...) {} in optional()