Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Reference

Header <boost/local_function.hpp>
Header <boost/local_function/config.hpp>

Local functions allow to program functions locally, within other functions, and directly within the scope where they are needed.


BOOST_LOCAL_FUNCTION(declarations)
BOOST_LOCAL_FUNCTION_TPL(declarations)
BOOST_LOCAL_FUNCTION_ID(id, declarations)
BOOST_LOCAL_FUNCTION_TPL_ID(id, declarations)
BOOST_LOCAL_FUNCTION_NAME(qualified_name)
BOOST_LOCAL_FUNCTION_NAME_TPL(name)
BOOST_LOCAL_FUNCTION_TYPEOF(bound_variable_name)

Configuration macros allow to change the behaviour of this library at compile-time.


BOOST_LOCAL_FUNCTION_CONFIG_ARITY_MAX
BOOST_LOCAL_FUNCTION_CONFIG_BIND_MAX
BOOST_LOCAL_FUNCTION_CONFIG_LOCALS_AS_TPARAMS

PrevUpHomeNext