Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:01:46

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_SYSTEMS_INFORMATION_BYTE_HPP_INCLUDED
0011 #define BOOST_UNITS_SYSTEMS_INFORMATION_BYTE_HPP_INCLUDED
0012 
0013 #include <boost/units/make_system.hpp>
0014 #include <boost/units/unit.hpp>
0015 #include <boost/units/static_constant.hpp>
0016 
0017 #include <boost/units/base_units/information/byte.hpp>
0018 
0019 namespace boost {
0020 namespace units { 
0021 namespace information {
0022 
0023 typedef make_system<byte_base_unit>::type system;
0024 
0025 typedef unit<dimensionless_type, system> dimensionless;
0026 
0027 namespace hu {
0028 namespace byte {
0029 typedef unit<information_dimension, system> info;
0030 } // namespace bit
0031 } // namespace hu
0032 
0033 BOOST_UNITS_STATIC_CONSTANT(byte, hu::byte::info);
0034 BOOST_UNITS_STATIC_CONSTANT(bytes, hu::byte::info);
0035 
0036 // I'm going to define boost::units::information::info (the "default")
0037 // to be hu::byte::info -- other variants such as hu::bit::info, hu::nat::info, etc
0038 // must be explicitly referred to
0039 typedef hu::byte::info info;
0040 
0041 } // namespace information
0042 } // namespace units
0043 } // namespace boost
0044 
0045 #endif // BOOST_UNITS_SYSTEMS_INFORMATION_BYTE_HPP_INCLUDED