libstdc++
memory_resource File Reference

Go to the source code of this file.

Classes

class  std::pmr::monotonic_buffer_resource
 
struct  std::pmr::pool_options
 
class  std::pmr::unsynchronized_pool_resource
 

Namespaces

namespace  std
 

Functions

memory_resourcestd::pmr::get_default_resource () noexcept
 
memory_resourcestd::pmr::new_delete_resource () noexcept
 
memory_resourcestd::pmr::null_memory_resource () noexcept
 
memory_resourcestd::pmr::set_default_resource (memory_resource *__r) noexcept
 

Detailed Description

This is a Standard C++ Library header.

This header declares the pmr (std::pmr) memory resources.

Definition in file memory_resource.

Macro Definition Documentation

◆ __glibcxx_want_memory_resource

#define __glibcxx_want_memory_resource

Definition at line 40 of file memory_resource.

◆ __glibcxx_want_polymorphic_allocator

#define __glibcxx_want_polymorphic_allocator

Definition at line 39 of file memory_resource.

Function Documentation

◆ get_default_resource()

memory_resource * std::pmr::get_default_resource ( )
noexcept

Get the current default memory resource pointer.

◆ null_memory_resource()

memory_resource * std::pmr::null_memory_resource ( )
noexcept

A pmr::memory_resource that always throws bad_alloc

◆ set_default_resource()

memory_resource * std::pmr::set_default_resource ( memory_resource __r)
noexcept

Replace the default memory resource pointer.