yomm2

method_class

defined in <yorel/yomm2/keywords.hpp>
YOMM2_METHOD_CLASS

defined in <yorel/yomm2/macros.hpp>

#define method_class(RETURN_TYPE, NAME, ARGS [, POLICY])
#define YOMM2_METHOD_CLASS(RETURN_TYPE, NAME, ARGS [, POLICY])

Both macros take the same arguments as declare_method, and return the corresponding core type method.

Example