reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
134 : public TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, NextTy, 137 typedef TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, NextTy, MoreTys...> 141 static const bool value = alignof(PrevTy) < alignof(NextTy); 162 getTrailingObjectsImpl(const BaseTy *Obj, 177 getTrailingObjectsImpl(BaseTy *Obj, 179 auto *Ptr = TopTrailingObj::getTrailingObjectsImpl( 232 BaseTy, TrailingObjects<BaseTy, TrailingTys...>, 232 BaseTy, TrailingObjects<BaseTy, TrailingTys...>, 233 BaseTy, TrailingTys...> { 242 BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...> 242 BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...> 242 BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...> 257 static const BaseTy * 258 getTrailingObjectsImpl(const BaseTy *Obj, 259 TrailingObjectsBase::OverloadToken<BaseTy>) { 263 static BaseTy * 264 getTrailingObjectsImpl(BaseTy *Obj, 265 TrailingObjectsBase::OverloadToken<BaseTy>) { 277 callNumTrailingObjects(const BaseTy *Obj, 278 TrailingObjectsBase::OverloadToken<BaseTy>) { 283 static size_t callNumTrailingObjects(const BaseTy *Obj, 284 TrailingObjectsBase::OverloadToken<T>) { 345 return sizeof(BaseTy) + ParentType::additionalSizeToAllocImpl(0, Counts...);unittests/Support/TrailingObjectsTest.cpp
18 class Class1 final : protected TrailingObjects<Class1, short> { 32 static Class1 *create(int *ShortArray, unsigned NumShorts) { 34 return new (Mem) Class1(ShortArray, NumShorts); 109 Class1 *C = Class1::create(arr, 3); 109 Class1 *C = Class1::create(arr, 3);