/usr/include/boost/hof/detail
NameSizeModeActions
and.hpp13590644editdlrm
callable_base.hpp18620644editdlrm
can_be_called.hpp30010644editdlrm
compressed_pair.hpp36780644editdlrm
constexpr_deduce.hpp20760644editdlrm
delegate.hpp41930644editdlrm
forward.hpp11630644editdlrm
holder.hpp6780644editdlrm
intrinsics.hpp45500644editdlrm
join.hpp12210644editdlrm
make.hpp9620644editdlrm
move.hpp6890644editdlrm
noexcept.hpp6370644editdlrm
pp.hpp36740644editdlrm
recursive_constexpr_depth.hpp6660644editdlrm
remove_rvalue_reference.hpp7560644editdlrm
result_of.hpp24470644editdlrm
result_type.hpp11990644editdlrm
seq.hpp10010644editdlrm
static_const_var.hpp20350644editdlrm
unpack_tuple.hpp26520644editdlrm
unwrap.hpp7350644editdlrm
using.hpp8270644editdlrm
Edit: /usr/include/boost/hof/detail/constexpr_deduce.hpp (2076B)
/*============================================================================= Copyright (c) 2015 Paul Fultz II constexpr_deduce.h 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_HOF_GUARD_FUNCTION_CONSTEXPR_DEDUCE_H #define BOOST_HOF_GUARD_FUNCTION_CONSTEXPR_DEDUCE_H #include #define BOOST_HOF_CONST_FOLD(x) (__builtin_constant_p(x) ? (x) : (x)) #ifndef BOOST_HOF_HAS_CONST_FOLD #if defined(__GNUC__) && !defined (__clang__) && __GNUC__ == 4 && __GNUC_MINOR__ < 7 #define BOOST_HOF_HAS_CONST_FOLD 0 #elif defined(__clang__) || defined (__GNUC__) #define BOOST_HOF_HAS_CONST_FOLD 1 #else #define BOOST_HOF_HAS_CONST_FOLD 0 #endif #endif namespace boost { namespace hof { namespace detail { struct constexpr_deduce { constexpr constexpr_deduce() {} template constexpr operator F() const { return F(); } }; template struct constexpr_deduce_unique { constexpr constexpr_deduce_unique() {} #if BOOST_HOF_HAS_CONST_FOLD template constexpr operator const F&() const { static_assert(BOOST_HOF_IS_EMPTY(F), "Function or lambda expression must be empty"); return BOOST_HOF_CONST_FOLD(reinterpret_cast(static_const_var())); } #else template constexpr operator F() const { // static_assert(std::is_default_constructible::value, "Function not default constructible"); return F(); } #endif }; }}} // namespace boost::hof #define BOOST_HOF_DETAIL_CONSTEXPR_DEDUCE true ? boost::hof::detail::constexpr_deduce() : #define BOOST_HOF_DETAIL_CONSTEXPR_DEDUCE_UNIQUE(T) true ? boost::hof::detail::constexpr_deduce_unique() : #ifdef _MSC_VER #define BOOST_HOF_DETAIL_MSVC_CONSTEXPR_DEDUCE BOOST_HOF_DETAIL_CONSTEXPR_DEDUCE #else #define BOOST_HOF_DETAIL_MSVC_CONSTEXPR_DEDUCE #endif #endif