placeholders.hpp 1.5 KB

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