...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::contract::old_pointer — Convert old value copies to old value pointers.
// In header: <boost/contract/old.hpp> class old_pointer { public: // public member functions template<typename T> operator old_ptr_if_copyable< T >(); template<typename T> operator old_ptr< T >(); };
This class is often only implicitly used by this library and it does not explicitly appear in user code (that is why this class does not have public constructors, etc.).
old_pointer
public member functionstemplate<typename T> operator old_ptr_if_copyable< T >();Convert this object to an actual old value pointer for which the old value type
T
might or not be copyable. For example, this is implicitly called when assigning or initializing old value pointers.
Template Parameters: |
|
template<typename T> operator old_ptr< T >();Convert this object to an actual old value pointer for which the old value type
T
must be copyable. For example, this is implicitly called when assigning or initializing old value pointers.
Template Parameters: |
|