Lines Matching defs:ObjectStorage
20 struct ObjectStorage struct
22 … using TStorage = typename std::aligned_storage<sizeof(T), std::alignment_of<T>::value>::type;
24 ObjectStorage() : data() {} in ObjectStorage() argument
26 ObjectStorage(const ObjectStorage& other) in ObjectStorage() function
31 ObjectStorage(ObjectStorage&& other) in ObjectStorage() argument
36 ~ObjectStorage() { destruct_on_exit<T>(); } in ~ObjectStorage()
39 void construct(Args&&... args) in construct()
45 typename std::enable_if<AllowManualDestruction>::type destruct() in destruct()
53 … void destruct_on_exit(typename std::enable_if<Destruct, U>::type* = 0) { destruct<true>(); } in destruct_on_exit()
56 void destruct_on_exit(typename std::enable_if<!Destruct, U>::type* = 0) { } in destruct_on_exit()
58 T& stored_object() { in stored_object()
62 T const& stored_object() const { in stored_object()
67 TStorage data;