Searched refs:OptionalBase (Results 1 – 5 of 5) sorted by relevance
195 class OptionalBase {200 constexpr OptionalBase() = default;201 constexpr OptionalBase(const OptionalBase& other) = default;202 constexpr OptionalBase(OptionalBase&& other) = default;205 constexpr explicit OptionalBase(in_place_t, Args&&... args)210 explicit OptionalBase(const OptionalBase<U>& other) {216 explicit OptionalBase(OptionalBase<U>&& other) {221 ~OptionalBase() = default;223 OptionalBase& operator=(const OptionalBase& other) {228 OptionalBase& operator=(OptionalBase&& other) noexcept([all …]
216 class OptionalBase {221 constexpr OptionalBase() = default;222 constexpr OptionalBase(const OptionalBase& other) = default;223 constexpr OptionalBase(OptionalBase&& other) = default;226 constexpr explicit OptionalBase(in_place_t, Args&&... args)231 explicit OptionalBase(const OptionalBase<U>& other) {237 explicit OptionalBase(OptionalBase<U>&& other) {242 ~OptionalBase() = default;244 OptionalBase& operator=(const OptionalBase& other) {249 OptionalBase& operator=(OptionalBase&& other) noexcept([all …]
182 static_assert(sizeof(Optional<int>) == sizeof(internal::OptionalBase<int>),
342 using OptionalBase = typename std::conditional< typedef351 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()[all …]
199 static_assert(sizeof(Optional<int>) == sizeof(internal::OptionalBase<int>),