Blame view

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