Namespaces
Variants

std:: get_new_handler

From cppreference.net
< cpp ‎ | memory ‎ | new
Utilities library
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)
헤더 파일에 정의됨 <new>
std:: new_handler get_new_handler ( ) noexcept ;
(C++11부터)

현재 설치된 new-handler를 반환하며, 이는 null 포인터일 수 있습니다.

이 함수는 스레드 안전합니다. 이전의 std::set_new_handler 호출은 이후의 std::get_new_handler 호출과 동기화됩니다 ( std::memory_order 참조).

매개변수

(없음)

반환값

현재 설치된 new-handler 는 null 포인터 값일 수 있습니다.

참고 항목

할당 함수
(함수)
새로운 핸들러를 등록함
(함수)
새로운 핸들러의 함수 포인터 타입
(타입 정의)