boost::contract::virtual_ — Type of extra function parameter to handle contracts for virtual public functions (for subcontracting).
Virtual public functions (and therefore also public function overrides) declaring contracts using this library must specify an extra function parameter at the very end of the parameter list. This parameter must be a pointer to this class and it must have default value
nullptr). (This extra parameter is often named
v in this documentation, but any name can be used.)
In practice this extra parameter does not alter the calling interface of the enclosing function declaring the contract because it is always the very last parameter and it has a default value (so it can always be omitted when users call the function). This extra parameter must be passed to
BOOST_CONTRACT_OLDOF, and all other operations of this library that accept a pointer to
boost::contract::virtual_. A part from that, this class is not intended to be directly used by programmers (and that is why this class does not have any public member and it is not copyable).