GCC Middle and Back End API Reference
stack_vec< T, N > Class Template Reference

#include <vec.h>

Inheritance diagram for stack_vec< T, N >:
Collaboration diagram for stack_vec< T, N >:

Public Member Functions

 stack_vec ()
 ~stack_vec ()

Private Attributes

vec_prefix m_header
T m_data [N]

Friends

class vec< T, va_heap, vl_ptr >

Detailed Description

template<typename T, size_t N>
class stack_vec< T, N >

stack_vec is a subclass of vec containing N elements of internal storage. You probably only want to allocate this on the stack because if the array ends up being larger or much smaller than N it will be wasting space.


Constructor & Destructor Documentation

template<typename T, size_t N>
stack_vec< T, N >::stack_vec ( )
inline
template<typename T, size_t N>
stack_vec< T, N >::~stack_vec ( )
inline

Friends And Related Function Documentation

template<typename T, size_t N>
friend class vec< T, va_heap, vl_ptr >
friend

Field Documentation

template<typename T, size_t N>
T stack_vec< T, N >::m_data[N]
private
template<typename T, size_t N>
vec_prefix stack_vec< T, N >::m_header
private

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