boost::openmethod::registry::state
Return a policy's state.
Synopsis
Declared in <boost/openmethod/preamble.hpp>
template<class P>
static
auto&
state();
Description
Returns a reference to the P::fn<registry_type>::state object held in the registry's state. This is how stateful policies access their data members: policies do not keep their own global variables.
Template Parameters
Name |
Description |
P |
A stateful policy of this registry, i.e. one whose |
Created with MrDocs