/usr/include/boost/parameter/aux_
NameSizeModeActions
pack/-0755rm
pp_impl/-0755rm
preprocessor/-0755rm
python/-0755rm
always_true_predicate.hpp11490644editdlrm
arg_list.hpp439830644editdlrm
as_lvalue.hpp5850644editdlrm
augment_predicate.hpp59480644editdlrm
cast.hpp3660644editdlrm
default.hpp29200644editdlrm
has_nested_template_fn.hpp32840644editdlrm
is_maybe.hpp14370644editdlrm
is_placeholder.hpp15330644editdlrm
is_tagged_argument.hpp29540644editdlrm
lambda_tag.hpp4770644editdlrm
maybe.hpp42540644editdlrm
name.hpp27410644editdlrm
parameter_requirements.hpp4080644editdlrm
parenthesized_type.hpp4160644editdlrm
result_of0.hpp14710644editdlrm
set.hpp31820644editdlrm
tag.hpp55750644editdlrm
tagged_argument.hpp303340644editdlrm
tagged_argument_fwd.hpp10310644editdlrm
template_keyword.hpp27340644editdlrm
unwrap_cv_reference.hpp58780644editdlrm
use_default.hpp4540644editdlrm
use_default_tag.hpp7870644editdlrm
void.hpp9980644editdlrm
yesno.hpp15230644editdlrm
Edit: /usr/include/boost/parameter/aux_/unwrap_cv_reference.hpp (5878B)
// Copyright Daniel Wallin, David Abrahams 2005. // Copyright Cromwell D. Enage 2017. // 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) #ifndef BOOST_PARAMETER_AUX_UNWRAP_CV_REFERENCE_HPP #define BOOST_PARAMETER_AUX_UNWRAP_CV_REFERENCE_HPP namespace boost { template class reference_wrapper; } // namespace boost #include namespace boost { namespace parameter { namespace aux { // // reference_wrapper support -- if perfect forwarding is unsupported, // then when passing arguments positionally by non-const reference, // we ask users of named parameter interfaces to use ref(x) to wrap them. // template ::boost::parameter::aux::yes_tag is_cv_reference_wrapper_check( ::boost::reference_wrapper const volatile* ); ::boost::parameter::aux::no_tag is_cv_reference_wrapper_check(...); }}} // namespace boost::parameter::aux #include #if !defined(BOOST_NO_CXX11_HDR_FUNCTIONAL) #include namespace boost { namespace parameter { namespace aux { // Support for std::ref(x) -- Cromwell D. Enage template ::boost::parameter::aux::yes_tag is_cv_reference_wrapper_check( ::std::reference_wrapper const volatile* ); }}} // namespace boost::parameter::aux #endif #include #if defined(BOOST_PARAMETER_CAN_USE_MP11) && !( \ BOOST_WORKAROUND(BOOST_MSVC, >= 1900) && \ BOOST_WORKAROUND(BOOST_MSVC, < 1910) \ ) #include #include #include #else // !defined(BOOST_PARAMETER_CAN_USE_MP11) || MSVC-14.0 #include #include #if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) && \ !BOOST_WORKAROUND(BOOST_GCC, < 40000) #include #endif #endif // BOOST_PARAMETER_CAN_USE_MP11 && not MSVC-14.0 namespace boost { namespace parameter { namespace aux { #if defined(BOOST_PARAMETER_CAN_USE_MP11) && !( \ BOOST_WORKAROUND(BOOST_MSVC, >= 1900) && \ BOOST_WORKAROUND(BOOST_MSVC, < 1910) \ ) // This metafunction returns mp11::mp_true if T is of type // reference_wrapper cv. template using is_cv_reference_wrapper = ::boost::mp11::mp_bool< sizeof( ::boost::parameter::aux::is_cv_reference_wrapper_check( static_cast< typename ::std::remove_reference::type* >(BOOST_PARAMETER_AUX_PP_NULLPTR) ) ) == sizeof(::boost::parameter::aux::yes_tag) >; // Needed for unwrap_cv_reference below. T might be const, so // mp_eval_if<> might fail because of deriving from T const on EDG. template using unwrap_cv_reference_impl = typename ::std::remove_reference::type; // Produces the unwrapped type to hold a reference to in // tagged_argument<>. Can't use boost::unwrap_reference<> here // because it doesn't handle the case where T = reference_wrapper cv. template using unwrap_cv_reference = ::boost::mp11::mp_eval_if< ::boost::parameter::aux::is_cv_reference_wrapper , ::boost::parameter::aux::unwrap_cv_reference_impl , ::std::remove_reference , T >; #else // !defined(BOOST_PARAMETER_CAN_USE_MP11) || MSVC-14.0 // This metafunction returns mpl::true_ if T is of type // reference_wrapper cv. template struct is_cv_reference_wrapper { BOOST_STATIC_CONSTANT( bool, value = ( sizeof( ::boost::parameter::aux::is_cv_reference_wrapper_check( static_cast< typename ::boost::remove_reference::type* >(BOOST_PARAMETER_AUX_PP_NULLPTR) ) ) == sizeof(::boost::parameter::aux::yes_tag) ) ); typedef boost::mpl::bool_< #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) is_cv_reference_wrapper:: #endif value> type; }; #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) || \ BOOST_WORKAROUND(BOOST_GCC, < 40000) template < typename T , typename = typename ::boost::parameter::aux ::is_cv_reference_wrapper::type > struct unwrap_cv_reference : ::boost::remove_reference { }; template struct unwrap_cv_reference { typedef T const type; }; template struct unwrap_cv_reference : T { }; #else // no Borland or GCC 3- workarounds needed // Needed for unwrap_cv_reference below. T might be const, so // eval_if<> might fail because of deriving from T const on EDG. template struct unwrap_cv_reference_impl : ::boost::remove_reference::type { }; // Produces the unwrapped type to hold a reference to in // tagged_argument<>. Can't use boost::unwrap_reference<> here // because it doesn't handle the case where T = reference_wrapper cv. template struct unwrap_cv_reference : ::boost::mpl::eval_if< ::boost::parameter::aux::is_cv_reference_wrapper , ::boost::parameter::aux::unwrap_cv_reference_impl , ::boost::remove_reference > { }; #endif // Borland or GCC 3- workarounds needed #endif // BOOST_PARAMETER_CAN_USE_MP11 && not MSVC-14.0 }}} // namespace boost::parameter::aux #endif // include guard