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_DIMENSIONLESS_UNIT_HPP
0012 #define BOOST_UNITS_IS_DIMENSIONLESS_UNIT_HPP
0013 
0014 /// \file
0015 /// \brief Check that a type is a dimensionless unit.
0016 
0017 #include <boost/units/is_unit_of_dimension.hpp>
0018 #include <boost/units/units_fwd.hpp>
0019 
0020 namespace boost {
0021 
0022 namespace units {
0023 
0024 /// Check that a type is a dimensionless unit.
0025 template<class T>
0026 struct is_dimensionless_unit :
0027     public is_unit_of_dimension<T,dimensionless_type>
0028 { };
0029 
0030 } // namespace units
0031 
0032 } // namespace boost
0033 
0034 #endif // BOOST_UNITS_IS_DIMENSIONLESS_UNIT_HPP