Back to home page

EIC code displayed by LXR

 
 

    


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

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) 2007-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_REDUCE_UNIT_HPP_INCLUDED
0012 #define BOOST_UNITS_REDUCE_UNIT_HPP_INCLUDED
0013 
0014 /// \file
0015 /// \brief Returns a unique type for every unit.
0016 
0017 namespace boost {
0018 namespace units {
0019 
0020 #ifdef BOOST_UNITS_DOXYGEN
0021 
0022 /// Returns a unique type for every unit.
0023 template<class Unit>
0024 struct reduce_unit {
0025     typedef detail::unspecified type;
0026 };
0027 
0028 #else
0029 
0030 // default implementation: return Unit unchanged.
0031 template<class Unit>
0032 struct reduce_unit {
0033     typedef Unit type;
0034 };
0035 
0036 #endif
0037 
0038 }
0039 }
0040 
0041 #endif