SavvyUI C++ UI Library
Loading...
Searching...
No Matches
Vector< T > Class Template Reference

#include <Collections.h>

Classes

class  iterator

Public Member Functions

 Vector ()
 Vector (int s)
 Vector (const Vector &arg)
Vector< T > & operator= (const Vector< T > &arg)
 ~Vector ()
iterator begin ()
const iterator begin () const
iterator end ()
const iterator end () const
const iterator cbegin () const
const iterator cend () const
bool empty () const
size_t capacity () const
void reserve (int newmalloc)
void resize (int newsize, T val=T())
size_t size () const
size_t max_size () const
void shrink_to_fit ()
void clear ()
void push_back (const T &d)
void erase (size_t index)
void pop_back ()
T & at (int n)
const T & at (int n) const
T & operator[] (int i)
const T & operator[] (int i) const
T & front ()
const T & front () const
T & back ()
const T & back () const
T * data ()
const T * data () const

Constructor & Destructor Documentation

◆ Vector() [1/3]

template<class T>
Vector< T >::Vector ( )

◆ Vector() [2/3]

template<class T>
Vector< T >::Vector ( int s)
inlineexplicit

◆ Vector() [3/3]

template<class T>
Vector< T >::Vector ( const Vector< T > & arg)
inline

◆ ~Vector()

template<class T>
Vector< T >::~Vector ( )

Member Function Documentation

◆ at() [1/2]

template<class T>
T & Vector< T >::at ( int n)
inline

◆ at() [2/2]

template<class T>
const T & Vector< T >::at ( int n) const
inline

◆ back() [1/2]

template<class T>
T & Vector< T >::back ( )
inline

◆ back() [2/2]

template<class T>
const T & Vector< T >::back ( ) const
inline

◆ begin() [1/2]

template<class T>
Vector< T >::iterator Vector< T >::begin ( )
inline

◆ begin() [2/2]

template<class T>
const Vector< T >::iterator Vector< T >::begin ( ) const
inline

◆ capacity()

template<class T>
size_t Vector< T >::capacity ( ) const
inline

◆ cbegin()

template<class T>
const Vector< T >::iterator Vector< T >::cbegin ( ) const
inline

◆ cend()

template<class T>
const Vector< T >::iterator Vector< T >::cend ( ) const
inline

◆ clear()

template<class T>
void Vector< T >::clear ( )

◆ data() [1/2]

template<class T>
T * Vector< T >::data ( )
inline

◆ data() [2/2]

template<class T>
const T * Vector< T >::data ( ) const
inline

◆ empty()

template<class T>
bool Vector< T >::empty ( ) const
inline

◆ end() [1/2]

template<class T>
Vector< T >::iterator Vector< T >::end ( )
inline

◆ end() [2/2]

template<class T>
const Vector< T >::iterator Vector< T >::end ( ) const
inline

◆ erase()

template<class T>
void Vector< T >::erase ( size_t index)
inline

◆ front() [1/2]

template<class T>
T & Vector< T >::front ( )
inline

◆ front() [2/2]

template<class T>
const T & Vector< T >::front ( ) const
inline

◆ max_size()

template<class T>
size_t Vector< T >::max_size ( ) const

◆ operator=()

template<class T>
Vector< T > & Vector< T >::operator= ( const Vector< T > & arg)
inline

◆ operator[]() [1/2]

template<class T>
T & Vector< T >::operator[] ( int i)
inline

◆ operator[]() [2/2]

template<class T>
const T & Vector< T >::operator[] ( int i) const
inline

◆ pop_back()

template<class T>
void Vector< T >::pop_back ( )

◆ push_back()

template<class T>
void Vector< T >::push_back ( const T & d)
inline

◆ reserve()

template<class T>
void Vector< T >::reserve ( int newmalloc)
inline

◆ resize()

template<class T>
void Vector< T >::resize ( int newsize,
T val = T() )
inline

◆ shrink_to_fit()

template<class T>
void Vector< T >::shrink_to_fit ( )

◆ size()

template<class T>
size_t Vector< T >::size ( ) const
inline

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