C++ Library - <new>



Introduction

It is a header describes functions used to manage dynamic storage in C++.The header also defines some specific types and the set_new_handler / get_new_handler pair of functions as shown below −

Functions

Sr.No. Function & description
1 operator new

It allocates storage space.

2 operator new[]

It allocates storage space for array.

3 operator delete

It deallocates storage space.

4 operator delete[]

It deallocates storage space of array.

5 get_new_handler

It is used to get new handler function.

Types

Sr.No. Type & description
1 nothrow_t

It is a nathrow type.

2 new_handler

It is a type of new handler function.

3 bad_alloc

It is an exception and throws on failure allocating memory.

4 bad_array_new_length

It is a bad array length exception.

Constants

Sr.No. Constant & description
1 nothrow

It is a nathrow constants.

Advertisements
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy