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_BYTE_HPP_INCLUDED
0011 #define BOOST_UNITS_BASE_UNITS_INFORMATION_BYTE_HPP_INCLUDED
0012 
0013 #include <boost/units/scaled_base_unit.hpp>
0014 #include <boost/units/static_rational.hpp>
0015 #include <boost/units/scale.hpp>
0016 #include <boost/units/units_fwd.hpp>
0017 #include <boost/units/base_units/information/bit.hpp>
0018 
0019 namespace boost {
0020 namespace units {
0021 namespace information {
0022 
0023 typedef scaled_base_unit<boost::units::information::bit_base_unit, scale<2, static_rational<3> > > byte_base_unit;
0024 
0025 } // namespace information
0026 
0027 template<>
0028 struct base_unit_info<information::byte_base_unit> {
0029     static BOOST_CONSTEXPR const char* name()   { return("byte"); }
0030     static BOOST_CONSTEXPR const char* symbol() { return("B"); }
0031 };
0032 
0033 } // namespace units
0034 } // namespace boost
0035 
0036 #endif // BOOST_UNITS_BASE_UNITS_INFORMATION_BYTE_HPP_INCLUDED