File indexing completed on 2025-01-18 09:53:13
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_UNIT_SYSTEMS_METRIC_TON_HPP_INCLUDED
0012 #define BOOST_UNIT_SYSTEMS_METRIC_TON_HPP_INCLUDED
0013
0014 #include <boost/units/scaled_base_unit.hpp>
0015 #include <boost/units/static_rational.hpp>
0016 #include <boost/units/scale.hpp>
0017 #include <boost/units/units_fwd.hpp>
0018 #include <boost/units/base_units/si/kilogram.hpp>
0019
0020
0021 namespace boost {
0022 namespace units {
0023 namespace metric {
0024
0025
0026 typedef scaled_base_unit<boost::units::si::kilogram_base_unit, scale<1000, static_rational<1> > > ton_base_unit;
0027
0028 }
0029
0030 template<>
0031 struct base_unit_info<metric::ton_base_unit> {
0032 static BOOST_CONSTEXPR const char* name() { return("metric ton"); }
0033 static BOOST_CONSTEXPR const char* symbol() { return("t"); }
0034 };
0035
0036 }
0037 }
0038
0039 #endif