File indexing completed on 2025-01-18 09:53:12
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_UNITS_CGS_GRAM_BASE_UNIT_HPP
0012 #define BOOST_UNITS_CGS_GRAM_BASE_UNIT_HPP
0013
0014 #include <string>
0015
0016 #include <boost/units/config.hpp>
0017 #include <boost/units/base_unit.hpp>
0018 #include <boost/units/scaled_base_unit.hpp>
0019 #include <boost/units/physical_dimensions/mass.hpp>
0020
0021 namespace boost {
0022
0023 namespace units {
0024
0025 namespace cgs {
0026
0027 struct gram_base_unit : public base_unit<gram_base_unit, mass_dimension, -8>
0028 {
0029 static std::string name() { return("gram"); }
0030 static std::string symbol() { return("g"); }
0031 };
0032
0033 }
0034
0035 }
0036
0037 }
0038
0039 #if BOOST_UNITS_HAS_BOOST_TYPEOF
0040
0041 #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
0042
0043 BOOST_TYPEOF_REGISTER_TYPE(boost::units::cgs::gram_base_unit)
0044
0045 #endif
0046
0047
0048
0049 #endif