Chris@16: // Boost.Units - A C++ library for zero-overhead dimensional analysis and Chris@16: // unit/quantity manipulation and conversion Chris@16: // Chris@16: // Copyright (C) 2003-2008 Matthias Christian Schabel Chris@16: // Copyright (C) 2008 Steven Watanabe Chris@16: // Chris@16: // Distributed under the Boost Software License, Version 1.0. (See Chris@16: // accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: #ifndef BOOST_UNITS_IS_QUANTITY_OF_DIMENSION_HPP Chris@16: #define BOOST_UNITS_IS_QUANTITY_OF_DIMENSION_HPP Chris@16: Chris@16: /// Chris@16: /// \file Chris@16: /// \brief Check that a type is a quantity of the specified dimension. Chris@16: /// Chris@16: Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: Chris@16: namespace boost { Chris@16: Chris@16: namespace units { Chris@16: Chris@16: /// Check that a type is a quantity of the specified dimension. Chris@16: template Chris@16: struct is_quantity_of_dimension : Chris@16: public mpl::false_ Chris@16: { }; Chris@16: Chris@16: template Chris@16: struct is_quantity_of_dimension< quantity< Unit,Y>,Dim > : Chris@16: public is_unit_of_dimension Chris@16: { }; Chris@16: Chris@16: } // namespace units Chris@16: Chris@16: } // namespace boost Chris@16: Chris@16: #endif // BOOST_UNITS_IS_QUANTITY_OF_DIMENSION_HPP