Searched defs:OptionalStorage (Results 1 – 3 of 3) sorted by relevance
32 template <typename T, bool IsPodLike> struct OptionalStorage { struct36 OptionalStorage() = default; argument38 OptionalStorage(const T &y) : hasVal(true) { new (storage.buffer) T(y); } in OptionalStorage() argument39 OptionalStorage(const OptionalStorage &O) : hasVal(O.hasVal) { in OptionalStorage() argument43 OptionalStorage(T &&y) : hasVal(true) { in OptionalStorage() function46 OptionalStorage(OptionalStorage &&O) : hasVal(O.hasVal) { in OptionalStorage() function92 ~OptionalStorage() { reset(); } in ~OptionalStorage() argument113 template <typename T> struct OptionalStorage<T, true> { argument
40 struct OptionalStorage { struct43 constexpr OptionalStorage() : empty_('\0') {} in OptionalStorage() argument45 constexpr explicit OptionalStorage(const T& value) in OptionalStorage() argument49 explicit OptionalStorage(T&& value) in OptionalStorage() function54 explicit OptionalStorage(base::in_place_t, Args&&... args) in OptionalStorage() function59 ~OptionalStorage() { in ~OptionalStorage() argument74 struct OptionalStorage<T, true> { argument
35 struct OptionalStorage { struct38 constexpr OptionalStorage() : empty_('\0') {} in OptionalStorage() argument40 constexpr explicit OptionalStorage(const T& value) in OptionalStorage() function44 explicit OptionalStorage(T&& value) in OptionalStorage() function49 explicit OptionalStorage(in_place_t, Args&&... args) in OptionalStorage() function54 ~OptionalStorage() { in ~OptionalStorage() argument70 struct OptionalStorage<T, true> { argument