Name

OwnerPtrRef — Allows correct passing of OwnerPtr by value as a temporary object.

Synopsis

template<typename T1> 
struct OwnerPtrRef {
  // construct/copy/destruct
  OwnerPtrRef(T1 *);

  // public member functions


  T1 * p_;
};

Description

The following code allows correct passing of OwnerPtr by value as a temporary (const) object.

OwnerPtrRef construct/copy/destruct

  1. OwnerPtrRef(T1 * p);


OwnerPtrRef public member functions