Gainput  v1.0.0
Public Types | Public Member Functions | Static Public Attributes | List of all members
gainput::Array< T > Class Template Reference

A std::vector-like data container for POD-types. More...

#include <GainputContainers.h>

Public Types

typedef T * iterator
typedef const T * const_iterator
typedef T value_type

Public Member Functions

 Array (Allocator &allocator, size_t capacity=DefaultCapacity)
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
T & operator[] (size_t i)
const T & operator[] (size_t i) const
void push_back (const value_type &val)
void pop_back ()
void reserve (size_t capacity)
void swap (Array< T > &x)
iterator erase (iterator pos)
void clear ()
bool empty () const
size_t size () const
iterator find (const value_type &val)
const_iterator find (const value_type &val) const

Static Public Attributes

static const size_t DefaultCapacity = 8

Detailed Description

template<class T>
class gainput::Array< T >

A std::vector-like data container for POD-types.

Template Parameters
TA POD-type to hold in this container.

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