Namespaces
Variants

std::auto_ptr<T>:: release

From cppreference.net
Memory management library
( exposition only* )
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage (until C++20)
( until C++20* )
( until C++20* )
( until C++20* )

Garbage collector support (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
T * release ( ) throw ( ) ;
(устарело в C++11)
(удалено в C++17)

Освобождает удерживаемый указатель. После вызова * this содержит нулевой указатель.

Параметры

(нет)

Возвращаемое значение

get ( ) .

Смотрите также

заменяет управляемый объект
(публичная функция-член)