UniquePtr<T> Class

Represents a unique ownership smart pointer. Cannot be copied but can be moved.

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 T* GetPtr()
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 T& operator*()
public inline const T& operator*() const
public T* operator->()
public inline 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 14 of System.Base/UniquePtr.cm


UniquePtr Constructor

public explicit nothrow UniquePtr(T* ptr_)

Definition
Line 17 of System.Base/UniquePtr.cm


UniquePtr Constructor

public nothrow UniquePtr(UniquePtr&& that)

Definition
Line 21 of System.Base/UniquePtr.cm


UniquePtr Constructor

suppress UniquePtr(const UniquePtr&)

Definition
Line 20 of System.Base/UniquePtr.cm


~UniquePtr Destructor

public ~UniquePtr()

Definition
Line 41 of System.Base/UniquePtr.cm


Member Function Details

Get Member Function

public inline nothrow T* Get()

Definition
Line 74 of System.Base/UniquePtr.cm


GetPtr Member Function

public inline nothrow T* GetPtr()

Definition
Line 70 of System.Base/UniquePtr.cm


IsNull Member Function

public inline nothrow bool IsNull()

Definition
Line 78 of System.Base/UniquePtr.cm


Release Member Function

public inline nothrow T* Release()

Definition
Line 64 of System.Base/UniquePtr.cm


Reset Member Function

public nothrow void Reset()

Definition
Line 48 of System.Base/UniquePtr.cm


Reset Member Function

public nothrow void Reset(T* ptr_)

Definition
Line 56 of System.Base/UniquePtr.cm


Swap Member Function

public nothrow void Swap(UniquePtr& that)

Definition
Line 114 of System.Base/UniquePtr.cm


operator* Member Function

public inline T& operator*()

Definition
Line 98 of System.Base/UniquePtr.cm


operator* Member Function

public inline const T& operator*()

Definition
Line 106 of System.Base/UniquePtr.cm


operator-> Member Function

public T* operator->()

Definition
Line 82 of System.Base/UniquePtr.cm


operator-> Member Function

public inline const T* operator->()

Definition
Line 90 of System.Base/UniquePtr.cm


operator= Member Function

public nothrow void operator=(T* ptr_)

Definition
Line 24 of System.Base/UniquePtr.cm


operator= Member Function

public nothrow void operator=(UniquePtr&& that)

Definition
Line 33 of System.Base/UniquePtr.cm


operator= Member Function

suppress void operator=(const UniquePtr&)

Definition
Line 32 of System.Base/UniquePtr.cm