mpl/is_placeholder.hpp
Go to the documentation of this file.
1 
2 #ifndef BOOST_MPL_IS_PLACEHOLDER_HPP_INCLUDED
3 #define BOOST_MPL_IS_PLACEHOLDER_HPP_INCLUDED
4 
5 // Copyright Aleksey Gurtovoy 2001-2004
6 //
7 // Distributed under the Boost Software License, Version 1.0.
8 // (See accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt)
10 //
11 // See http://www.boost.org/libs/mpl for documentation.
12 
13 // $Id: is_placeholder.hpp 13472 2017-08-22 07:53:44Z richean $
14 // $Date: 2017-08-22 09:53:44 +0200 (Di, 22 Aug 2017) $
15 // $Revision: 13472 $
16 
17 #include <boost/mpl/arg_fwd.hpp>
18 #include <boost/mpl/bool.hpp>
24 
25 namespace boost { namespace mpl {
26 
27 #if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
28 
29 template< typename T >
31  : bool_<false>
32 {
33 };
34 
35 template< BOOST_MPL_AUX_NTTP_DECL(int, N) >
36 struct is_placeholder< arg<N> >
37  : bool_<true>
38 {
39 };
40 
41 #else
42 
43 namespace aux {
44 
45 aux::no_tag is_placeholder_helper(...);
46 
47 template< BOOST_MPL_AUX_NTTP_DECL(int, N) >
48 aux::yes_tag is_placeholder_helper(aux::type_wrapper< arg<N> >*);
49 
50 } // namespace aux
51 
52 template< typename T >
53 struct is_placeholder
54 {
55  static aux::type_wrapper<T>* get();
56  BOOST_STATIC_CONSTANT(bool, value =
57  sizeof(aux::is_placeholder_helper(get())) == sizeof(aux::yes_tag)
58  );
59 
60  typedef bool_<value> type;
61 };
62 
63 #endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
64 
65 }}
66 
67 #endif // BOOST_MPL_IS_PLACEHOLDER_HPP_INCLUDED
ctps.hpp
boost::mpl::is_placeholder
Definition: mpl/is_placeholder.hpp:30
bool.hpp
boost
BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE.
type_wrapper.hpp
bool_< false >::BOOST_STATIC_CONSTANT
BOOST_STATIC_CONSTANT(bool, value=C_)
yes_no.hpp
boost::arg
Definition: bind/arg.hpp:29
nttp_decl.hpp
boost::mpl::aux::yes_tag
char(& yes_tag)[2]
Definition: yes_no.hpp:26
bool_< false >::type
bool_ type
Definition: mpl/bool.hpp:27
boost::get
BOOST_DEDUCED_TYPENAME optional< T >::reference_const_type get(optional< T > const &opt)
Definition: optional/optional.hpp:1061
boost::mpl::aux::type_wrapper
Definition: type_wrapper.hpp:22
arg_fwd.hpp
static_constant.hpp
bool_
Definition: mpl/bool.hpp:23
boost::mpl::aux::no_tag
char(& no_tag)[1]
Definition: yes_no.hpp:25
boost::is_placeholder
Definition: is_placeholder.hpp:24


sick_visionary_ros
Author(s): SICK AG TechSupport 3D Snapshot
autogenerated on Thu Feb 8 2024 03:40:01