Zero  0.1.0
Public Member Functions | Private Attributes | List of all members
allocaN< N > Class Template Reference

constructs a blob of N bytes. More...

#include <w_defines.h>

Public Member Functions

 operator void * ()
 

Private Attributes

char _buf [N+__alignof__(double)]
 

Detailed Description

template<int N>
class allocaN< N >

constructs a blob of N bytes.

When instantiated on the stack, allocates enough bytes on the stack to hold an object of size N, aligned. Specialize this to handle arbitrary sizes (sizeof(a)+sizeof(b), etc).

Member Function Documentation

§ operator void *()

template<int N>
allocaN< N >::operator void * ( )
inline

Member Data Documentation

§ _buf

template<int N>
char allocaN< N >::_buf[N+__alignof__(double)]
private

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