Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
new.hpp File Reference

Go to the source code of this file.

Function Documentation

◆ operator delete()

void operator delete ( void * ,
void *  )
inlinenoexcept

Implementation of placement delete. Used if the constructor called by a placement new expression throws.

This is not a user-replaceable function

◆ operator delete[]()

void operator delete[] ( void * ,
void *  )
inlinenoexcept

Implementation of placement delete for arrays. Used if the constructor called by an array placement new expression throws.

This is not a user-replaceable function

◆ operator new()

auto operator new ( std::size_t ,
void *const ptr ) -> void*
inlinenoexcept

Implementation of placement new; does no dynamic allocation. This is called for all placement new expressions of the form new (ptr) Type where ptr is convertible to void* and no other overload is viable.

This is not a user-replaceable function

Parameters
ptrThe address to construct at
Returns
The supplied ptr

◆ operator new[]()

auto operator new[] ( std::size_t ,
void *const ptr ) -> void*
inlinenoexcept

Implementation of placement new for arrays; does no dynamic allocation. This is called for all placement new expressions of the form new (ptr) Type[count] where ptr is convertible to void* and no other overload is viable.

This is not a user-replaceable function

Parameters
ptrThe address to construct at
Returns
The supplied ptr