Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:53:12

0001 // Boost.Units - A C++ library for zero-overhead dimensional analysis and 
0002 // unit/quantity manipulation and conversion
0003 //
0004 // Copyright (C) 2014 Erik Erlandson
0005 //
0006 // Distributed under the Boost Software License, Version 1.0. (See
0007 // accompanying file LICENSE_1_0.txt or copy at
0008 // http://www.boost.org/LICENSE_1_0.txt)
0009 
0010 #ifndef BOOST_UNITS_BASE_UNITS_INFORMATION_BIT_HPP_INCLUDED
0011 #define BOOST_UNITS_BASE_UNITS_INFORMATION_BIT_HPP_INCLUDED
0012 
0013 #include <string>
0014 
0015 #include <boost/units/config.hpp>
0016 #include <boost/units/base_unit.hpp>
0017 #include <boost/units/physical_dimensions/information.hpp>
0018 
0019 namespace boost {
0020 namespace units {
0021 namespace information {
0022 
0023 struct bit_base_unit : public base_unit<bit_base_unit, information_dimension, -700>
0024 {
0025     static std::string name()   { return("bit"); }
0026     static std::string symbol() { return("b"); }
0027 };
0028 
0029 } // namespace information
0030 } // namespace units
0031 } // namespace boost
0032 
0033 #if BOOST_UNITS_HAS_BOOST_TYPEOF
0034 
0035 #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
0036 
0037 BOOST_TYPEOF_REGISTER_TYPE(boost::units::information::bit_base_unit)
0038 
0039 #endif
0040 
0041 #endif // BOOST_UNITS_BASE_UNITS_INFORMATION_BIT_HPP_INCLUDED