Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/units/is_quantity.hpp @ 120:4729c8589274 emscripten-piper
Add piper builds
| author | Chris Cannam |
|---|---|
| date | Fri, 11 Nov 2016 15:49:32 +0000 |
| parents | 2665513ce2d3 |
| children |
| rev | line source |
|---|---|
| Chris@16 | 1 // Boost.Units - A C++ library for zero-overhead dimensional analysis and |
| Chris@16 | 2 // unit/quantity manipulation and conversion |
| Chris@16 | 3 // |
| Chris@16 | 4 // Copyright (C) 2003-2008 Matthias Christian Schabel |
| Chris@16 | 5 // Copyright (C) 2008 Steven Watanabe |
| Chris@16 | 6 // |
| Chris@16 | 7 // Distributed under the Boost Software License, Version 1.0. (See |
| Chris@16 | 8 // accompanying file LICENSE_1_0.txt or copy at |
| Chris@16 | 9 // http://www.boost.org/LICENSE_1_0.txt) |
| Chris@16 | 10 |
| Chris@16 | 11 #ifndef BOOST_UNITS_IS_QUANTITY_HPP |
| Chris@16 | 12 #define BOOST_UNITS_IS_QUANTITY_HPP |
| Chris@16 | 13 |
| Chris@16 | 14 /// |
| Chris@16 | 15 /// \file |
| Chris@16 | 16 /// \brief Check that a type is a quantity. |
| Chris@16 | 17 /// |
| Chris@16 | 18 |
| Chris@16 | 19 #include <boost/mpl/bool.hpp> |
| Chris@16 | 20 #include <boost/units/units_fwd.hpp> |
| Chris@16 | 21 |
| Chris@16 | 22 namespace boost { |
| Chris@16 | 23 |
| Chris@16 | 24 namespace units { |
| Chris@16 | 25 |
| Chris@16 | 26 /// Check that a type is a quantity. |
| Chris@16 | 27 template<typename T> |
| Chris@16 | 28 struct is_quantity : |
| Chris@16 | 29 public mpl::false_ |
| Chris@16 | 30 { }; |
| Chris@16 | 31 |
| Chris@16 | 32 template<class Unit, |
| Chris@16 | 33 class Y> |
| Chris@16 | 34 struct is_quantity< quantity<Unit,Y> > : |
| Chris@16 | 35 public mpl::true_ |
| Chris@16 | 36 { }; |
| Chris@16 | 37 |
| Chris@16 | 38 } // namespace units |
| Chris@16 | 39 |
| Chris@16 | 40 } // namespace boost |
| Chris@16 | 41 |
| Chris@16 | 42 #endif // BOOST_UNITS_IS_QUANTITY_HPP |
