Lines Matching refs:storage_
108 typename std::aligned_storage<sizeof(T), alignof(T)>::type storage_; variable
124 new (&storage_) T(reinterpret_cast<const T&>(rhs.storage_)); in Maybe()
132 new (&storage_) T(reinterpret_cast<const U&>(rhs.storage_)); in Maybe()
142 new (&storage_) T(std::move(reinterpret_cast<T&>(rhs.storage_))); in Maybe()
154 new (&storage_) T(std::move(reinterpret_cast<U&>(rhs.storage_))); in Maybe()
179 reinterpret_cast<T&>(storage_) = reinterpret_cast<const U&>(rhs.storage_); in copy()
185 new (&storage_) T(reinterpret_cast<const U&>(rhs.storage_)); in copy()
215 reinterpret_cast<T&>(storage_) = in move()
216 std::move(reinterpret_cast<U&>(rhs.storage_)); in move()
224 new (&storage_) T(std::move(reinterpret_cast<U&>(rhs.storage_))); in move()
236 new (&storage_) T(value); in Maybe()
241 new (&storage_) T(std::forward<T>(value)); in Maybe()
252 return reinterpret_cast<T&>(storage_); in value()
258 return reinterpret_cast<const T&>(storage_); in value()
266 return reinterpret_cast<const T&>(storage_); in value_or_default()
271 reinterpret_cast<T&>(storage_).~T(); in destroy()