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 for the latest Boost documentation.
PrevUpHomeNext

Function copy_old

boost::contract::copy_old — Check if old values need to be copied (but not for virtual public functions and public function overrides).

Synopsis

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


bool copy_old();

Description

For example, this function always returns false when both postconditions and exception guarantees are not being checked (see BOOST_CONTRACT_NO_OLDS). This function is often only used by the code expanded by BOOST_CONTRACT_OLDOF.

See Also:

No Macros

Returns:

True if old values need to be copied, false otherwise.


PrevUpHomeNext