Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Macro BOOST_CONTRACT_OVERRIDES

BOOST_CONTRACT_OVERRIDES — Declare multiple override types at once naming them override_... (for convenience).

Synopsis

// In header: <boost/contract/override.hpp>

BOOST_CONTRACT_OVERRIDES(...)

Description

This variadic macro is provided for convenience only, BOOST_CONTRACT_OVERRIDES(f_1, f_2, ..., f_n) expands to code equivalent to:

BOOST_CONTRACT_OVERRIDE(f_1)
BOOST_CONTRACT_OVERRIDE(f_2)
...
BOOST_CONTRACT_OVERRIDE(f_n)

On compilers that do not support variadic macros, the override types can be equivalently programmed one-by-one calling BOOST_CONTRACT_OVERRIDE for each function name as shown above.

See Also:

Public Function Overrides

Parameters:

...

A comma separated list of one or more function names of public function overrides. (Each function name should never contain commas because it is an identifier.)


PrevUpHomeNext