chars_format.hpp 560 B

12345678910111213141516171819202122
  1. // Copyright 2023 Matt Borland
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // https://www.boost.org/LICENSE_1_0.txt
  4. #ifndef BOOST_CHARCONV_CHARS_FORMAT_HPP
  5. #define BOOST_CHARCONV_CHARS_FORMAT_HPP
  6. namespace boost { namespace charconv {
  7. // Floating-point format for primitive numerical conversion
  8. // chars_format is a bitmask type (16.3.3.3.3)
  9. enum class chars_format : unsigned
  10. {
  11. scientific = 1 << 0,
  12. fixed = 1 << 1,
  13. hex = 1 << 2,
  14. general = fixed | scientific
  15. };
  16. }} // Namespaces
  17. #endif // BOOST_CHARCONV_CHARS_FORMAT_HPP