Поделиться через


<memory> (TR1)

Defines a class, an operator, and several templates that help allocate and free objects.

#include <memory>

Declarations

Class

Description

bad_weak_ptr Class

Reports bad weak_ptr exception.

enable_shared_from_this Class

Helps generate a shared_ptr.

shared_ptr Class

Wraps a shareable pointer.

weak_ptr Class

Wraps a weakly linked pointer.

Template Functions

Operator

Description

operator== <memory>

shared_ptr comparison, equal

operator!= <memory>

shared_ptr comparison, not equal

operator> <memory>

shared_ptr comparison, greater than

operator< <memory>

shared_ptr and weak_ptr comparison, less than

operator<= <memory>

shared_ptr comparison, greater than or equal to

operator<< <memory>

shared_ptr inserter

Function

Description

const_pointer_cast Function

Const cast to shared_ptr.

dynamic_pointer_cast Function

Dynamic cast to shared_ptr.

get_deleter Function

Gets a deleter from a shared_ptr.

static_pointer_cast Function

Static cast to shared_ptr.

swap Function <memory>

Swap two shared_ptr or weak_ptr objects.

См. также

Ссылки

<memory> (TR1)