UniquePtr<T> Class

Template Parameters

T

Constructors & Destructor

public nothrow UniquePtr()
public explicit nothrow UniquePtr(T* ptr_)
public nothrow UniquePtr(UniquePtr&& that)
suppress UniquePtr(const UniquePtr&)
public ~UniquePtr()

Member Functions

public inline nothrow T* Get()
public inline nothrow bool IsNull() const
public inline nothrow T* Release()
public nothrow void Reset()
public nothrow void Reset(T* ptr_)
public nothrow void Swap(UniquePtr& that)
public inline nothrow T& operator*()
public inline nothrow const T& operator*() const
public inline nothrow T* operator->()
public inline nothrow const T* operator->() const
public nothrow void operator=(T* ptr_)
public nothrow void operator=(UniquePtr&& that)
suppress void operator=(const UniquePtr&)

Typedefs

private typedef Self UniquePtr

Member Variables

private T* ptr

Constructor& Destructor Details

UniquePtr Constructor

public nothrow UniquePtr()

Definition
Line 5 of UniquePtr/unique_ptr.cm


UniquePtr Constructor

public explicit nothrow UniquePtr(T* ptr_)

Definition
Line 8 of UniquePtr/unique_ptr.cm


UniquePtr Constructor

public nothrow UniquePtr(UniquePtr&& that)

Definition
Line 12 of UniquePtr/unique_ptr.cm


UniquePtr Constructor

suppress UniquePtr(const UniquePtr&)

Definition
Line 11 of UniquePtr/unique_ptr.cm


~UniquePtr Destructor

public ~UniquePtr()

Definition
Line 32 of UniquePtr/unique_ptr.cm


Member Function Details

Get Member Function

public inline nothrow T* Get()

Definition
Line 61 of UniquePtr/unique_ptr.cm


IsNull Member Function

public inline nothrow bool IsNull()

Definition
Line 65 of UniquePtr/unique_ptr.cm


Release Member Function

public inline nothrow T* Release()

Definition
Line 55 of UniquePtr/unique_ptr.cm


Reset Member Function

public nothrow void Reset()

Definition
Line 39 of UniquePtr/unique_ptr.cm


Reset Member Function

public nothrow void Reset(T* ptr_)

Definition
Line 47 of UniquePtr/unique_ptr.cm


Swap Member Function

public nothrow void Swap(UniquePtr& that)

Definition
Line 89 of UniquePtr/unique_ptr.cm


operator* Member Function

public inline nothrow T& operator*()

Definition
Line 79 of UniquePtr/unique_ptr.cm


operator* Member Function

public inline nothrow const T& operator*()

Definition
Line 84 of UniquePtr/unique_ptr.cm


operator-> Member Function

public inline nothrow T* operator->()

Definition
Line 69 of UniquePtr/unique_ptr.cm


operator-> Member Function

public inline nothrow const T* operator->()

Definition
Line 74 of UniquePtr/unique_ptr.cm


operator= Member Function

public nothrow void operator=(T* ptr_)

Definition
Line 15 of UniquePtr/unique_ptr.cm


operator= Member Function

public nothrow void operator=(UniquePtr&& that)

Definition
Line 24 of UniquePtr/unique_ptr.cm


operator= Member Function

suppress void operator=(const UniquePtr&)

Definition
Line 23 of UniquePtr/unique_ptr.cm