LLVM  6.0.0svn
Classes
llvm::TrailingObjects< BaseTy, TrailingTys >::FixedSizeStorage< Tys > Struct Template Reference

A type where its ::with_counts template member has a ::type member suitable for use as uninitialized storage for an object with the given trailing object counts. More...

#include "llvm/Support/TrailingObjects.h"

Classes

struct  with_counts
 

Detailed Description

template<typename BaseTy, typename... TrailingTys>
template<typename... Tys>
struct llvm::TrailingObjects< BaseTy, TrailingTys >::FixedSizeStorage< Tys >

A type where its ::with_counts template member has a ::type member suitable for use as uninitialized storage for an object with the given trailing object counts.

The template arguments are similar to those of additionalSizeToAlloc.

Use with FixedSizeStorageOwner, e.g.:

MyObj::FixedSizeStorage<void *>::with_counts<1u>::type myStackObjStorage;
MyObj::FixedSizeStorageOwner
myStackObjOwner(new ((void *)&myStackObjStorage) MyObj);
MyObj *const myStackObjPtr = myStackObjOwner.get();

Definition at line 370 of file TrailingObjects.h.


The documentation for this struct was generated from the following file: