Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/units/base_units/metric/angstrom.hpp @ 125:34e428693f5d vext
Vext -> Repoint
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2018 11:15:39 +0100 |
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) 2007-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_UNIT_SYSTEMS_METRIC_ANGSTROM_HPP_INCLUDED |
Chris@16 | 12 #define BOOST_UNIT_SYSTEMS_METRIC_ANGSTROM_HPP_INCLUDED |
Chris@16 | 13 |
Chris@16 | 14 #include <boost/units/scaled_base_unit.hpp> |
Chris@16 | 15 #include <boost/units/static_rational.hpp> |
Chris@16 | 16 #include <boost/units/scale.hpp> |
Chris@16 | 17 #include <boost/units/units_fwd.hpp> |
Chris@16 | 18 #include <boost/units/base_units/si/meter.hpp> |
Chris@16 | 19 |
Chris@16 | 20 namespace boost { |
Chris@16 | 21 namespace units { |
Chris@16 | 22 namespace metric { |
Chris@16 | 23 |
Chris@16 | 24 typedef scaled_base_unit<boost::units::si::meter_base_unit, scale<10, static_rational<-10> > > angstrom_base_unit; |
Chris@16 | 25 |
Chris@16 | 26 } |
Chris@16 | 27 |
Chris@16 | 28 template<> |
Chris@16 | 29 struct base_unit_info<metric::angstrom_base_unit> { |
Chris@16 | 30 static const char* name() { return("angstrom"); } |
Chris@16 | 31 static const char* symbol() { return("A"); } |
Chris@16 | 32 }; |
Chris@16 | 33 |
Chris@16 | 34 } |
Chris@16 | 35 } |
Chris@16 | 36 |
Chris@16 | 37 #endif // BOOST_UNIT_SYSTEMS_METRIC_ANGSTROM_HPP_INCLUDED |