boost::openmethod::registry::policy

Returns the policy for a policy category.

Synopsis

template<class Category>
using policy = detail::get_policy_aux<registry, mp11::mp_find_if_q<policy_list, mp11::mp_bind_front_q<mp11::mp_quote_trait<is_base_of>, Category>>>::type;

Description

policy searches for a policy that derives from the specified PolicyCategory. If none is found, it aliases to void. Otherwise, it aliases to the policy's fn class template, instantiated for this registry.

Template Parameters

Name

Description

Category

A model of policies::PolicyCategory.

Created with MrDocs