Searched refs:OptionalStorage (Results 1 – 5 of 5) 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() function52 OptionalStorage &operator=(T &&y) {61 OptionalStorage &operator=(OptionalStorage &&O) {75 OptionalStorage &operator=(const T &y) {84 OptionalStorage &operator=(const OptionalStorage &O) {[all …]
40 struct OptionalStorage { struct43 constexpr OptionalStorage() : empty_('\0') {} in OptionalStorage() function45 constexpr explicit OptionalStorage(const T& value) in OptionalStorage() argument49 explicit OptionalStorage(T&& value) in OptionalStorage() argument54 explicit OptionalStorage(base::in_place_t, Args&&... args) in OptionalStorage() function59 ~OptionalStorage() { in ~OptionalStorage() argument74 struct OptionalStorage<T, true> { argument77 constexpr OptionalStorage() : empty_('\0') {}79 constexpr explicit OptionalStorage(const T& value)83 explicit OptionalStorage(T&& value)[all …]
35 struct OptionalStorage { struct38 constexpr OptionalStorage() : empty_('\0') {} in OptionalStorage() function40 constexpr explicit OptionalStorage(const T& value) in OptionalStorage() argument44 explicit OptionalStorage(T&& value) in OptionalStorage() argument49 explicit OptionalStorage(in_place_t, Args&&... args) in OptionalStorage() function54 ~OptionalStorage() { in ~OptionalStorage() argument70 struct OptionalStorage<T, true> { argument73 constexpr OptionalStorage() : empty_('\0') {}75 constexpr explicit OptionalStorage(const T& value)79 explicit OptionalStorage(T&& value)[all …]
134 struct OptionalStorage : OptionalStorageBase<T> {149 OptionalStorage() = default;151 OptionalStorage(const OptionalStorage& other) {156 OptionalStorage(OptionalStorage&& other) noexcept(164 struct OptionalStorage<T,173 OptionalStorage() = default;174 OptionalStorage(const OptionalStorage& other) = default;176 OptionalStorage(OptionalStorage&& other) noexcept(184 struct OptionalStorage<T,193 OptionalStorage() = default;[all …]
145 struct OptionalStorage : OptionalStorageBase<T> {160 OptionalStorage() = default;162 OptionalStorage(const OptionalStorage& other) : OptionalStorageBase<T>() {167 OptionalStorage(OptionalStorage&& other) noexcept(175 struct OptionalStorage<T, true /* trivially copy constructible */>182 OptionalStorage() = default;183 OptionalStorage(const OptionalStorage& other) = default;185 OptionalStorage(OptionalStorage&& other) noexcept(271 OptionalStorage<T> storage_;