fix doc example typo
[boost.git] / boost / units / reduce_unit.hpp
blob5c6742b8eb7f995dac9c8e47837f04d226fafc96
1 // Boost.Units - A C++ library for zero-overhead dimensional analysis and
2 // unit/quantity manipulation and conversion
3 //
4 // Copyright (C) 2003-2008 Matthias Christian Schabel
5 // Copyright (C) 2007-2008 Steven Watanabe
6 //
7 // Distributed under the Boost Software License, Version 1.0. (See
8 // accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt)
11 #ifndef BOOST_UNITS_REDUCE_UNIT_HPP_INCLUDED
12 #define BOOST_UNITS_REDUCE_UNIT_HPP_INCLUDED
14 namespace boost {
15 namespace units {
17 #ifdef BOOST_UNITS_DOXYGEN
19 /// Returns a unique type for every unit.
20 template<class Unit>
21 struct reduce_unit {
22 typedef detail::unspecified type;
25 #else
27 // default implementation: return Unit unchanged.
28 template<class Unit>
29 struct reduce_unit {
30 typedef Unit type;
33 #endif
38 #endif