llvm-mos-sdk
Classes | Namespaces | Typedefs | Functions | Variables
new File Reference
#include <cstddef>
Include dependency graph for new:
This graph shows which files directly or indirectly include this file:

Classes

struct  std::nothrow_t
 

Namespaces

 std
 

Typedefs

typedef void(* std::new_handler) ()
 

Functions

new_handler std::get_new_handler () noexcept
 
new_handler std::set_new_handler (new_handler new_p) noexcept
 
void * operator new (std::size_t count, const std::nothrow_t &tag) noexcept
 
void * operator new[] (std::size_t count, const std::nothrow_t &tag) noexcept
 
void * operator new (std::size_t count, void *ptr)
 
void * operator new[] (std::size_t count, void *ptr)
 

Variables

const nothrow_t std::nothrow
 

Function Documentation

◆ operator new() [1/2]

void* operator new ( std::size_t  count,
const std::nothrow_t tag 
)
noexcept

The standard forms of the new are implicitly declared by the compiler, and are automatically declared in every translation unit. These are provided here for exposition. The user may provide their own definitions of these functions to override their behavior.

void *operator new(std::size_t size); void *operator new[](std::size_t size);

Likewise, for the the default implementation of delete: void operator delete(void *ptr) noexcept; void operator delete[](void *ptr) noexcept

◆ operator new() [2/2]

void* operator new ( std::size_t  count,
void *  ptr 
)

◆ operator new[]() [1/2]

void* operator new[] ( std::size_t  count,
const std::nothrow_t tag 
)
noexcept

◆ operator new[]() [2/2]

void* operator new[] ( std::size_t  count,
void *  ptr 
)