1 // Boost.Units - A C++ library for zero-overhead dimensional analysis and
2 // unit/quantity manipulation and conversion
4 // Copyright (C) 2003-2008 Matthias Christian Schabel
5 // Copyright (C) 2008 Steven Watanabe
7 // Distributed under the Boost Software License, Version 1.0. (See
8 // accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt)
11 #ifndef BOOST_UNITS_GET_SYSTEM_HPP
12 #define BOOST_UNITS_GET_SYSTEM_HPP
15 /// \brief Get the system of a unit, absolute unit or quantity.
17 #include <boost/units/units_fwd.hpp>
26 /// Get the system of a unit.
27 template<class Dim,class System>
28 struct get_system< unit<Dim,System> >
33 /// Get the system of an absolute unit.
35 struct get_system< absolute<Unit> >
37 typedef typename get_system<Unit>::type type;
40 /// Get the system of a quantity.
41 template<class Unit,class Y>
42 struct get_system< quantity<Unit,Y> >
44 typedef typename get_system<Unit>::type type;
51 #endif // BOOST_UNITS_GET_SYSTEM_HPP