1#ifndef BOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
2#define BOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
3
4// MS compatible compilers support #pragma once
5
6#if defined(_MSC_VER) && (_MSC_VER >= 1020)
7# pragma once
8#endif
9
10//
11// bind/placeholders.hpp - _N definitions
12//
13// Copyright 2002, 2015, 2024 Peter Dimov
14//
15// Distributed under the Boost Software License, Version 1.0.
16// See accompanying file LICENSE_1_0.txt or copy at
17// http://www.boost.org/LICENSE_1_0.txt
18//
19// See http://www.boost.org/libs/bind for documentation.
20//
21
22#include <boost/bind/arg.hpp>
23#include <boost/config.hpp>
24
25namespace boost
26{
27
28namespace placeholders
29{
30
31#if !defined(BOOST_NO_CXX17_INLINE_VARIABLES)
32
33BOOST_INLINE_CONSTEXPR boost::arg<1> _1;
34BOOST_INLINE_CONSTEXPR boost::arg<2> _2;
35BOOST_INLINE_CONSTEXPR boost::arg<3> _3;
36BOOST_INLINE_CONSTEXPR boost::arg<4> _4;
37BOOST_INLINE_CONSTEXPR boost::arg<5> _5;
38BOOST_INLINE_CONSTEXPR boost::arg<6> _6;
39BOOST_INLINE_CONSTEXPR boost::arg<7> _7;
40BOOST_INLINE_CONSTEXPR boost::arg<8> _8;
41BOOST_INLINE_CONSTEXPR boost::arg<9> _9;
42
43#else
44
45BOOST_STATIC_CONSTEXPR boost::arg<1> _1;
46BOOST_STATIC_CONSTEXPR boost::arg<2> _2;
47BOOST_STATIC_CONSTEXPR boost::arg<3> _3;
48BOOST_STATIC_CONSTEXPR boost::arg<4> _4;
49BOOST_STATIC_CONSTEXPR boost::arg<5> _5;
50BOOST_STATIC_CONSTEXPR boost::arg<6> _6;
51BOOST_STATIC_CONSTEXPR boost::arg<7> _7;
52BOOST_STATIC_CONSTEXPR boost::arg<8> _8;
53BOOST_STATIC_CONSTEXPR boost::arg<9> _9;
54
55#endif
56
57} // namespace placeholders
58
59} // namespace boost
60
61#endif // #ifndef BOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
62

source code of boost/libs/bind/include/boost/bind/placeholders.hpp