Public Types | Public Member Functions

ct_vector_2< T0, T1 > Class Template Reference

Compiletime vector with one element. More...

#include <ct_vector.hpp>

Public Types

typedef T0 type_0
typedef T1 type_1

Public Member Functions

 ct_vector_2 (T0 const &t0, T1 const &t1)
T0 const & operator[] (ct_index< 0 >) const
 Provides access to the first element using bracket access and a compile time index.
T1 const & operator[] (ct_index< 1 >) const
 Provides access to the second element using bracket access and a compile time index.
template<long i>
void operator[] (ct_index< i >) const
std::size_t size () const

Detailed Description

template<typename T0, typename T1>
class viennamath::ct_vector_2< T0, T1 >

Compiletime vector with one element.

Template Parameters:
T0 First entry of the vector
T1 Second entry of the vector

Member Typedef Documentation

typedef T0 type_0
typedef T1 type_1

Constructor & Destructor Documentation

ct_vector_2 ( T0 const &  t0,
T1 const &  t1 
) [inline]

Member Function Documentation

T0 const& operator[] ( ct_index< 0 >   )  const [inline]

Provides access to the first element using bracket access and a compile time index.

T1 const& operator[] ( ct_index< 1 >   )  const [inline]

Provides access to the second element using bracket access and a compile time index.

void operator[] ( ct_index< i >   )  const [inline]
std::size_t size (  )  const [inline]

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