...one of the most highly regarded and expertly designed C++ library projects in the world. — Herb Sutter and Andrei Alexandrescu, C++ Coding Standards
...one of the most highly regarded and expertly designed C++ library projects in the world.
#включает<boost/qvm/mat_traits.hpp> & #35;включает<boost/qvm/vec_traits.hpp> include <boost/qvm/quat_traits.hpp> #include <boost/qvm/mat_traits.hpp> #include <boost/qvm/vec_traits.hpp> [ORIG_END] -->
namespace boost { namespace qvm { //*** Type traits *** template <class T> struct is_quat { static bool const value=/*unspecified*/; }; template <class Q> struct quat_traits { /*main template members unspecified*/ }; /* User-defined (possibly partial) specializations: template <> struct quat_traits<Q> { typedef /*user-defined*/ scalar_type; template <int I> static inline scalar_type read_element( Quaternion const & q ); template <int I> static inline scalar_type & write_element( Quaternion & q ); }; */ template <class T> struct is_vec { static bool const value=/*unspecified*/; }; template <class V> struct vec_traits { /*main template members unspecified*/ }; /* User-defined (possibly partial) specializations: template <> struct vec_traits<V> { static int const dim = /*user-defined*/; typedef /*user-defined*/ scalar_type; template <int I> static inline scalar_type read_element( Vector const & v ); template <int I> static inline scalar_type & write_element( Vector & v ); static inline scalar_type read_element_idx( int i, Vector const & v ); static inline scalar_type & write_element_idx( int i, Vector & v ); }; */ template <class T> struct is_mat { static bool const value=/*unspecified*/; }; template <class M> struct mat_traits { /*main template members unspecified*/ }; /* User-defined (possibly partial) specializations: template <> struct mat_traits<M> { static int const rows = /*user-defined*/; static int const cols = /*user-defined*/; typedef /*user-defined*/ scalar_type; template <int R,int C> static inline scalar_type read_element( Matrix const & m ); template <int R,int C> static inline scalar_type & write_element( Matrix & m ); static inline scalar_type read_element_idx( int r, int c, Matrix const & m ); static inline scalar_type & write_element_idx( int r, int c, Matrix & m ); }; */ } }
Статья type traits раздела может быть полезна для разработчиков на c++ и boost.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.
:: Главная :: ::
реклама