Blame view

3rdparty/boost_1_81_0/boost/bind/placeholders.hpp 2.1 KB
598bfd3f   Hu Chunming   提交_GLIBCXX_USE_CX...
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
  #ifndef BOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
  #define BOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
  
  // MS compatible compilers support #pragma once
  
  #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  # pragma once
  #endif
  
  //
  //  bind/placeholders.hpp - _N definitions
  //
  //  Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
  //  Copyright 2015 Peter Dimov
  //
  //  Distributed under the Boost Software License, Version 1.0.
  //  See accompanying file LICENSE_1_0.txt or copy at
  //  http://www.boost.org/LICENSE_1_0.txt
  //
  //  See http://www.boost.org/libs/bind/bind.html for documentation.
  //
  
  #include <boost/bind/arg.hpp>
  #include <boost/config.hpp>
  
  namespace boost
  {
  
  namespace placeholders
  {
  
  #if defined(BOOST_BORLANDC) || defined(__GNUC__) && (__GNUC__ < 4)
  
  inline boost::arg<1> _1() { return boost::arg<1>(); }
  inline boost::arg<2> _2() { return boost::arg<2>(); }
  inline boost::arg<3> _3() { return boost::arg<3>(); }
  inline boost::arg<4> _4() { return boost::arg<4>(); }
  inline boost::arg<5> _5() { return boost::arg<5>(); }
  inline boost::arg<6> _6() { return boost::arg<6>(); }
  inline boost::arg<7> _7() { return boost::arg<7>(); }
  inline boost::arg<8> _8() { return boost::arg<8>(); }
  inline boost::arg<9> _9() { return boost::arg<9>(); }
  
  #elif !defined(BOOST_NO_CXX17_INLINE_VARIABLES)
  
  BOOST_INLINE_CONSTEXPR boost::arg<1> _1;
  BOOST_INLINE_CONSTEXPR boost::arg<2> _2;
  BOOST_INLINE_CONSTEXPR boost::arg<3> _3;
  BOOST_INLINE_CONSTEXPR boost::arg<4> _4;
  BOOST_INLINE_CONSTEXPR boost::arg<5> _5;
  BOOST_INLINE_CONSTEXPR boost::arg<6> _6;
  BOOST_INLINE_CONSTEXPR boost::arg<7> _7;
  BOOST_INLINE_CONSTEXPR boost::arg<8> _8;
  BOOST_INLINE_CONSTEXPR boost::arg<9> _9;
  
  #else
  
  BOOST_STATIC_CONSTEXPR boost::arg<1> _1;
  BOOST_STATIC_CONSTEXPR boost::arg<2> _2;
  BOOST_STATIC_CONSTEXPR boost::arg<3> _3;
  BOOST_STATIC_CONSTEXPR boost::arg<4> _4;
  BOOST_STATIC_CONSTEXPR boost::arg<5> _5;
  BOOST_STATIC_CONSTEXPR boost::arg<6> _6;
  BOOST_STATIC_CONSTEXPR boost::arg<7> _7;
  BOOST_STATIC_CONSTEXPR boost::arg<8> _8;
  BOOST_STATIC_CONSTEXPR boost::arg<9> _9;
  
  #endif
  
  } // namespace placeholders
  
  } // namespace boost
  
  #endif // #ifndef BOOST_BIND_PLACEHOLDERS_HPP_INCLUDED