Searched defs:optional_base (Results 1 – 2 of 2) sorted by relevance
10 base::Optional<Base> optional_base; in DisallowedUseOfUniquePtr() local
297 struct optional_base struct299 bool init_;300 storage_t<T> storage_;302 constexpr optional_base() noexcept : init_(false), storage_(trivial_init) {}; in optional_base() argument304 explicit constexpr optional_base(const T& v) : init_(true), storage_(v) {} in optional_base() argument306 explicit constexpr optional_base(T&& v) : init_(true), storage_(constexpr_move(v)) {} in optional_base() argument308 template <class... Args> explicit optional_base(in_place_t, Args&&... args) in optional_base() function312 explicit optional_base(in_place_t, std::initializer_list<U> il, Args&&... args) in optional_base() function315 ~optional_base() { if (init_) storage_.value_.T::~T(); } in ~optional_base()