Classes | Public Types | Public Member Functions | List of all members
cpp3ds::LinearAllocator< T > Class Template Reference

This allocator class is useful for when you want to use a STL container (e.g. More...

#include <LinearAllocator.hpp>

Inheritance diagram for cpp3ds::LinearAllocator< T >:

Classes

struct  rebind
 

Public Types

typedef size_t size_type
 
typedef ptrdiff_t difference_type
 
typedef T * pointer
 
typedef const T * const_pointer
 
typedef T & reference
 
typedef const T & const_reference
 
typedef T value_type
 

Public Member Functions

 LinearAllocator (const LinearAllocator &__a) throw ()
 
template<typename T1 >
 LinearAllocator (const LinearAllocator< T1 > &) throw ()
 
pointer allocate (size_type __n, const void *=0)
 
void deallocate (pointer __p, size_type)
 
size_type max_size () const
 

Detailed Description

template<typename T>
class cpp3ds::LinearAllocator< T >

This allocator class is useful for when you want to use a STL container (e.g.

std::vector) that allocates everything using ctrulib's linear memory.

See also
cpp3ds::VertexArray

Definition at line 13 of file LinearAllocator.hpp.


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