Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-16 09:35:06

0001 // Boost.Units - A C++ library for zero-overhead dimensional analysis and 
0002 // unit/quantity manipulation and conversion
0003 //
0004 // Copyright (C) 2003-2008 Matthias Christian Schabel
0005 // Copyright (C) 2008 Steven Watanabe
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. (See
0008 // accompanying file LICENSE_1_0.txt or copy at
0009 // http://www.boost.org/LICENSE_1_0.txt)
0010 
0011 #ifndef BOOST_UNITS_IS_QUANTITY_OF_DIMENSION_HPP
0012 #define BOOST_UNITS_IS_QUANTITY_OF_DIMENSION_HPP
0013 
0014 ///
0015 /// \file
0016 /// \brief Check that a type is a quantity of the specified dimension.
0017 ///
0018 
0019 #include <boost/mpl/bool.hpp>
0020 #include <boost/units/units_fwd.hpp>
0021 #include <boost/units/is_unit_of_dimension.hpp>
0022 
0023 namespace boost {
0024 
0025 namespace units {
0026 
0027 /// Check that a type is a quantity of the specified dimension.
0028 template<class T,class Dim>
0029 struct is_quantity_of_dimension :
0030     public mpl::false_
0031 { };
0032 
0033 template<class Unit,class Y,class Dim>
0034 struct is_quantity_of_dimension< quantity< Unit,Y>,Dim > :
0035     public is_unit_of_dimension<Unit, Dim>
0036 { };
0037 
0038 } // namespace units
0039 
0040 } // namespace boost
0041 
0042 #endif // BOOST_UNITS_IS_QUANTITY_OF_DIMENSION_HPP