Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:44:12

0001 #ifndef BOOST_BIND_STD_PLACEHOLDERS_HPP_INCLUDED
0002 #define BOOST_BIND_STD_PLACEHOLDERS_HPP_INCLUDED
0003 
0004 // MS compatible compilers support #pragma once
0005 
0006 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
0007 # pragma once
0008 #endif
0009 
0010 // Copyright 2021 Peter Dimov
0011 // Distributed under the Boost Software License, Version 1.0.
0012 // https://www.boost.org/LICENSE_1_0.txt
0013 
0014 #include <boost/is_placeholder.hpp>
0015 #include <functional>
0016 #include <type_traits>
0017 
0018 namespace boost
0019 {
0020 
0021 template<> struct is_placeholder< typename std::decay<decltype(std::placeholders::_1)>::type > { enum _vt { value = 1 }; };
0022 template<> struct is_placeholder< typename std::decay<decltype(std::placeholders::_2)>::type > { enum _vt { value = 2 }; };
0023 template<> struct is_placeholder< typename std::decay<decltype(std::placeholders::_3)>::type > { enum _vt { value = 3 }; };
0024 template<> struct is_placeholder< typename std::decay<decltype(std::placeholders::_4)>::type > { enum _vt { value = 4 }; };
0025 template<> struct is_placeholder< typename std::decay<decltype(std::placeholders::_5)>::type > { enum _vt { value = 5 }; };
0026 template<> struct is_placeholder< typename std::decay<decltype(std::placeholders::_6)>::type > { enum _vt { value = 6 }; };
0027 template<> struct is_placeholder< typename std::decay<decltype(std::placeholders::_7)>::type > { enum _vt { value = 7 }; };
0028 template<> struct is_placeholder< typename std::decay<decltype(std::placeholders::_8)>::type > { enum _vt { value = 8 }; };
0029 template<> struct is_placeholder< typename std::decay<decltype(std::placeholders::_9)>::type > { enum _vt { value = 9 }; };
0030 
0031 } // namespace boost
0032 
0033 #endif // #ifndef BOOST_BIND_STD_PLACEHOLDERS_HPP_INCLUDED