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

This is the documentation for an old version of boost. Click here for the latest Boost documentation.

QVM: Quaternions, Vectors, Matrices


#include <boost/qvm/vec_traits_array.hpp>

namespace boost
    namespace qvm
        template <int Dim,class T>
        T (&ptr_vref( T * ptr ))[Dim];


A of type "array of Dim elements of type T" to the memory pointed by ptr. This makes it possible to use the array at ptr as a vector of size Dim.