parameters.hpp 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. // Copyright (c) 2009-2020 Vladimir Batov.
  2. // Use, modification and distribution are subject to the Boost Software License,
  3. // Version 1.0. See http://www.boost.org/LICENSE_1_0.txt.
  4. #ifndef BOOST_CONVERT_PARAMETERS_HPP
  5. #define BOOST_CONVERT_PARAMETERS_HPP
  6. #include <boost/parameter/name.hpp>
  7. #include <boost/parameter/is_argument_pack.hpp>
  8. #include <boost/mpl/has_key.hpp>
  9. namespace boost { namespace cnv
  10. {
  11. enum class adjust : uint8_t { left, right, center };
  12. enum class base : uint8_t { bin =2, oct =8, dec =10, hex =16 };
  13. enum class notation : uint8_t { fixed, scientific, hex };
  14. namespace parameter
  15. {
  16. BOOST_PARAMETER_NAME(( adjust, type) adjust)
  17. BOOST_PARAMETER_NAME(( base, type) base)
  18. BOOST_PARAMETER_NAME(( fill, type) fill)
  19. BOOST_PARAMETER_NAME(( locale, type) locale)
  20. BOOST_PARAMETER_NAME(( notation, type) notation)
  21. BOOST_PARAMETER_NAME((precision, type) precision)
  22. BOOST_PARAMETER_NAME(( skipws, type) skipws)
  23. BOOST_PARAMETER_NAME((uppercase, type) uppercase)
  24. BOOST_PARAMETER_NAME((lowercase, type) lowercase)
  25. BOOST_PARAMETER_NAME(( width, type) width)
  26. }
  27. }}
  28. #endif // BOOST_CONVERT_PARAMETERS_HPP