summaryrefslogtreecommitdiff log msg author committer range
blob: cf6e2238c23df0e4af8a3ee88d90ab1a3889d5b7 (plain)
 ```1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 ``` ``````/*============================================================================= Copyright (c) 2016 Paul Fultz II function_param_limit.hpp 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_PARAM_LIMIT_HPP #define BOOST_HOF_GUARD_FUNCTION_PARAM_LIMIT_HPP /// function_param_limit /// ==================== /// /// Description /// ----------- /// /// The `function_param_limit` metafunction retrieves the maximum number of /// parameters for a function. For function pointers it returns the number of /// parameters. Everything else, it returns `SIZE_MAX`, but this can be /// changed by annotating the function with the [`limit`](limit) decorator. /// /// This is a type trait that inherits from `std::integral_constant`. /// /// Synopsis /// -------- /// /// template /// struct function_param_limit /// : std::integral_constant /// {}; /// /// See Also /// -------- /// /// * [Partial function evaluation]() /// * [limit](limit) /// #include #include #include namespace boost { namespace hof { template struct function_param_limit : std::integral_constant {}; template struct function_param_limit::type> : F::fit_function_param_limit {}; }} // namespace boost::hof #endif ``````