Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

QVM: Quaternions, Vectors, Matrices

vec_traits<V>::read_element_idx

static inline scalar_type read_element_idx( int i, Vector const & v );

This function is expected to be static member of user-defined specializations of the vec_traits template. It returns the i-th element of v, by value or by const reference.