TooN 2.1
StaticSizedAllocator< Size, Precision > Class Template Reference

This allocator object sets aside memory for a statically sized object. It will put all the data on the stack if there are less then TooN::max_bytes_on_stack of data, otherwise it will use new/delete. More...

#include <allocator.hh>

Inheritance diagram for StaticSizedAllocator< Size, Precision >:
StackOrHeap VectorAlloc< Size, Precision > GenericVBase< Size, Precision, 1, VectorAlloc< Size, Precision > > VBase::VLayout< Size, Precision >

Detailed Description

template<int Size, class Precision>
class TooN::Internal::StaticSizedAllocator< Size, Precision >

This allocator object sets aside memory for a statically sized object. It will put all the data on the stack if there are less then TooN::max_bytes_on_stack of data, otherwise it will use new/delete.