Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/units/dimensionless_unit.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_DIMENSIONLESS_UNIT_HPP
0012 #define BOOST_UNITS_DIMENSIONLESS_UNIT_HPP
0013 
0014 ///
0015 /// \file
0016 /// \brief Utility class to simplify construction of dimensionless units in a system.
0017 ///
0018 
0019 #include <boost/units/dimensionless_type.hpp>
0020 #include <boost/units/unit.hpp>
0021 
0022 namespace boost {
0023 
0024 namespace units {
0025 
0026 /// Utility class to simplify construction of dimensionless units in a system.
0027 template<class System>
0028 struct dimensionless_unit
0029 {
0030     typedef unit<dimensionless_type,System> type;
0031 };
0032 
0033 } // namespace units
0034 
0035 } // namespace boost
0036 
0037 #endif // BOOST_UNITS_DIMENSIONLESS_UNIT_HPP