Home
last modified time | relevance | path

Searched defs:optional_base (Results 1 – 1 of 1) sorted by relevance

/external/bcc/src/cc/vendor/
Doptional.hpp297 struct optional_base struct
299 bool init_;
300 storage_t<T> storage_;
302 constexpr optional_base() noexcept : init_(false), storage_(trivial_init) {}; in optional_base() function
304 explicit constexpr optional_base(const T& v) : init_(true), storage_(v) {} in optional_base() function
306 explicit constexpr optional_base(T&& v) : init_(true), storage_(constexpr_move(v)) {} in optional_base() argument
308 template <class... Args> explicit optional_base(in_place_t, Args&&... args) in optional_base() argument
312 explicit optional_base(in_place_t, std::initializer_list<U> il, Args&&... args) in optional_base() function
315 ~optional_base() { if (init_) storage_.value_.T::~T(); } in ~optional_base()