]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/units/include/boost/units/systems/information/byte.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / units / include / boost / units / systems / information / byte.hpp
1 // Boost.Units - A C++ library for zero-overhead dimensional analysis and
2 // unit/quantity manipulation and conversion
3 //
4 // Copyright (C) 2014 Erik Erlandson
5 //
6 // Distributed under the Boost Software License, Version 1.0. (See
7 // accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
9
10 #ifndef BOOST_UNITS_SYSTEMS_INFORMATION_BYTE_HPP_INCLUDED
11 #define BOOST_UNITS_SYSTEMS_INFORMATION_BYTE_HPP_INCLUDED
12
13 #include <boost/units/make_system.hpp>
14 #include <boost/units/unit.hpp>
15 #include <boost/units/static_constant.hpp>
16
17 #include <boost/units/base_units/information/byte.hpp>
18
19 namespace boost {
20 namespace units {
21 namespace information {
22
23 typedef make_system<byte_base_unit>::type system;
24
25 typedef unit<dimensionless_type, system> dimensionless;
26
27 namespace hu {
28 namespace byte {
29 typedef unit<information_dimension, system> info;
30 } // namespace bit
31 } // namespace hu
32
33 BOOST_UNITS_STATIC_CONSTANT(byte, hu::byte::info);
34 BOOST_UNITS_STATIC_CONSTANT(bytes, hu::byte::info);
35
36 // I'm going to define boost::units::information::info (the "default")
37 // to be hu::byte::info -- other variants such as hu::bit::info, hu::nat::info, etc
38 // must be explicitly referred to
39 typedef hu::byte::info info;
40
41 } // namespace information
42 } // namespace units
43 } // namespace boost
44
45 #endif // BOOST_UNITS_SYSTEMS_INFORMATION_BYTE_HPP_INCLUDED