bit.hpp 978 B

123456789101112131415161718192021222324252627282930313233
  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. #ifndef BOOST_UNITS_SYSTEMS_INFORMATION_BIT_HPP_INCLUDED
  10. #define BOOST_UNITS_SYSTEMS_INFORMATION_BIT_HPP_INCLUDED
  11. #include <boost/units/systems/information/byte.hpp>
  12. #include <boost/units/base_units/information/bit.hpp>
  13. namespace boost {
  14. namespace units {
  15. namespace information {
  16. namespace hu {
  17. namespace bit {
  18. typedef unit<information_dimension, make_system<bit_base_unit>::type> info;
  19. } // namespace bit
  20. } // namespace hu
  21. BOOST_UNITS_STATIC_CONSTANT(bit, hu::bit::info);
  22. BOOST_UNITS_STATIC_CONSTANT(bits, hu::bit::info);
  23. } // namespace information
  24. } // namespace units
  25. } // namespace boost
  26. #endif // BOOST_UNITS_SYSTEMS_INFORMATION_BIT_HPP_INCLUDED