Name

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

Synopsis

template<typename T1> 
struct OwnerPtrRef:
  # construct/copy/destruct
  __init__(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. __init__(T1 * p)


OwnerPtrRef public member functions