Home | History | Annotate | Download | only in base

Lines Matching refs:storage

102   static T* MutableInstance(StorageType* storage) {
103 return reinterpret_cast<T*>(storage);
107 static void InitStorageUsingTrait(StorageType* storage) {
108 ConstructTrait::Construct(MutableInstance(storage));
117 static T* MutableInstance(StorageType* storage) {
118 return *storage;
122 static void InitStorageUsingTrait(StorageType* storage) {
123 *storage = CreateTrait::Create();
146 template <typename Function, typename Storage>
147 static void Init(OnceType* once, Function function, Storage storage) {
148 CallOnce(once, function, storage);
155 template <typename Function, typename Storage>
156 static void Init(OnceType* once, Function function, Storage storage) {
158 function(storage);
173 static void InitInstance(StorageType* storage) {
174 AllocationTrait::template InitStorageUsingTrait<CreateTrait>(storage);
199 // 4-byte alignment of the storage field below. If compiling with GCC (>4.2),