Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/units/is_quantity.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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_HPP
0012 #define BOOST_UNITS_IS_QUANTITY_HPP
0013 
0014 ///
0015 /// \file
0016 /// \brief Check that a type is a quantity.
0017 ///
0018 
0019 #include <boost/mpl/bool.hpp>
0020 #include <boost/units/units_fwd.hpp>
0021 
0022 namespace boost {
0023 
0024 namespace units {
0025 
0026 /// Check that a type is a quantity.
0027 template<typename T>
0028 struct is_quantity :
0029     public mpl::false_
0030 { };
0031 
0032 template<class Unit,
0033          class Y>
0034 struct is_quantity< quantity<Unit,Y> > : 
0035     public mpl::true_
0036 { };
0037 
0038 } // namespace units
0039 
0040 } // namespace boost
0041 
0042 #endif // BOOST_UNITS_IS_QUANTITY_HPP