QVM: Quaternions, Vectors, Matrices

vec_traits<V>::write_element_idx

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

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