QVM: Quaternions, Vectors, Matrices

ptr_qref

#include <boost/qvm/quat_traits_array.hpp>

namespace boost
{
    namespace qvm
    {
        template <class T>
        T (&ptr_qref( T * ptr ))[4];
    }
}

Returns:

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