Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/memory/new/get new handler"

From cppreference.com
< cpp‎ | memory‎ | new
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh)
m (Shorten template names. Use {{lc}} where appropriate.)
Line 1: Line 1:
 
{{cpp/title|get_new_handler}}
 
{{cpp/title|get_new_handler}}
 
{{cpp/memory/new/navbar}}
 
{{cpp/memory/new/navbar}}
{{ddcl list begin}}
+
{{dcl begin}}
{{ddcl list header | new}}
+
{{dcl header | new}}
{{ddcl list item | notes={{mark since c++11}} |1=
+
{{dcl | notes={{mark since c++11}} |1=
 
std::new_handler get_new_handler();
 
std::new_handler get_new_handler();
 
}}
 
}}
{{ddcl list end}}
+
{{dcl end}}
  
 
Returns the currently installed new-handler, which may be a null pointer.
 
Returns the currently installed new-handler, which may be a null pointer.
Line 20: Line 20:
  
 
===See also===
 
===See also===
{{dcl list begin}}
+
{{dsc begin}}
{{dcl list template | cpp/memory/new/dcl list operator_new}}
+
{{dsc inc | cpp/memory/new/dcl list operator_new}}
{{dcl list template | cpp/memory/new/dcl list set_new_handler}}
+
{{dsc inc | cpp/memory/new/dcl list set_new_handler}}
{{dcl list template | cpp/memory/new/dcl list new_handler}}
+
{{dsc inc | cpp/memory/new/dcl list new_handler}}
{{dcl list end}}
+
{{dsc end}}
  
 
[[de:cpp/memory/new/get new handler]]
 
[[de:cpp/memory/new/get new handler]]

Revision as of 19:14, 31 May 2013

 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
 
Dynamic memory management
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Allocators
Garbage collection support
(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)



 
 
Defined in header <new>
std::new_handler get_new_handler();
(since C++11)

Returns the currently installed new-handler, which may be a null pointer.

Contents

Parameters

(none)

Return value

The currently installed new-handler, which may be a null pointer value.

Exceptions

noexcept specification:  
noexcept
  

See also

Template:cpp/memory/new/dcl list operator newTemplate:cpp/memory/new/dcl list set new handlerTemplate:cpp/memory/new/dcl list new handler