boost::openmethod::virtual_

Decorator for virtual parameters.

Synopsis

template<typename T>
struct virtual_;

Description

virtual_ marks a formal parameter of a method as virtual. It is a decorator, not an actual type that can be instantiated (it does not have a definition). It is removed from the method's signature.

virtual_ can be used only in method declarations, not in overriders. A parameter in overriders is implicitly virtual if it is in the same position as a virtual parameter in the method's declaration.

Requirements

virtual_traits must be specialized for T.

Template Parameters

Name Description

T

A class.

Created with MrDocs