Warning, file /include/boost/units/get_system.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_UNITS_GET_SYSTEM_HPP
0012 #define BOOST_UNITS_GET_SYSTEM_HPP
0013
0014
0015
0016
0017 #include <boost/units/units_fwd.hpp>
0018
0019 namespace boost {
0020
0021 namespace units {
0022
0023 template<class T>
0024 struct get_system {};
0025
0026
0027 template<class Dim,class System>
0028 struct get_system< unit<Dim,System> >
0029 {
0030 typedef System type;
0031 };
0032
0033
0034 template<class Unit>
0035 struct get_system< absolute<Unit> >
0036 {
0037 typedef typename get_system<Unit>::type type;
0038 };
0039
0040
0041 template<class Unit,class Y>
0042 struct get_system< quantity<Unit,Y> >
0043 {
0044 typedef typename get_system<Unit>::type type;
0045 };
0046
0047 }
0048
0049 }
0050
0051 #endif