reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
141 template <typename T> class OptionalStorage<T, true> { 144 T value; 165 value.~T(); 172 T &getValue() LLVM_LVALUE_FUNCTION noexcept { 176 T const &getValue() const LLVM_LVALUE_FUNCTION noexcept { 181 T &&getValue() && noexcept { 189 ::new ((void *)std::addressof(value)) T(std::forward<Args>(args)...); 193 OptionalStorage &operator=(T const &y) { 197 ::new ((void *)std::addressof(value)) T(y); 202 OptionalStorage &operator=(T &&y) { 206 ::new ((void *)std::addressof(value)) T(std::move(y));