CAPD RedHom Library
RandomAccess< Ref > Struct Template Reference

Public Types

typedef Ref reference
 

Public Member Functions

 RandomAccess (const std::initializer_list< int > &l)
 
size_t size () const
 
const reference operator[] (size_t idx) const
 
reference operator[] (size_t idx)
 

Public Attributes

std::vector< int > v
 

Member Typedef Documentation

template<typename Ref = int&>
typedef Ref RandomAccess< Ref >::reference

Constructor & Destructor Documentation

template<typename Ref = int&>
RandomAccess< Ref >::RandomAccess ( const std::initializer_list< int > &  l)
inline

Member Function Documentation

template<typename Ref = int&>
const reference RandomAccess< Ref >::operator[] ( size_t  idx) const
inline
template<typename Ref = int&>
reference RandomAccess< Ref >::operator[] ( size_t  idx)
inline
template<typename Ref = int&>
size_t RandomAccess< Ref >::size ( ) const
inline

Member Data Documentation

template<typename Ref = int&>
std::vector<int> RandomAccess< Ref >::v