libstdc++
Classes | Namespaces | Macros | Typedefs | Functions
experimental/memory_resource File Reference

Go to the source code of this file.

Classes

class  __gnu_cxx::malloc_allocator< _Tp >
 

Namespaces

 __gnu_cxx
 
 std
 
 std::experimental
 

Macros

#define __cpp_lib_experimental_memory_resources
 
#define _GLIBCXX_EXPERIMENTAL_MEMORY_RESOURCE
 
#define _GLIBCXX_MAX_ALIGN_MATCHES_MALLOC
 

Typedefs

template<typename _Alloc >
using std::experimental::fundamentals_v2::pmr::resource_adaptor = __resource_adaptor_imp< typename allocator_traits< _Alloc >::template rebind_alloc< char > >
 

Functions

memory_resource * std::experimental::fundamentals_v2::pmr::get_default_resource () noexcept
 
memory_resource * std::experimental::fundamentals_v2::pmr::new_delete_resource () noexcept
 
memory_resource * std::experimental::fundamentals_v2::pmr::null_memory_resource () noexcept
 
bool std::experimental::fundamentals_v2::pmr::operator!= (const memory_resource &__a, const memory_resource &__b) noexcept
 
template<class _Tp1 , class _Tp2 >
bool std::experimental::fundamentals_v2::pmr::operator!= (const polymorphic_allocator< _Tp1 > &__a, const polymorphic_allocator< _Tp2 > &__b) noexcept
 
bool std::experimental::fundamentals_v2::pmr::operator== (const memory_resource &__a, const memory_resource &__b) noexcept
 
template<class _Tp1 , class _Tp2 >
bool std::experimental::fundamentals_v2::pmr::operator== (const polymorphic_allocator< _Tp1 > &__a, const polymorphic_allocator< _Tp2 > &__b) noexcept
 
memory_resource * std::experimental::fundamentals_v2::pmr::set_default_resource (memory_resource *__r) noexcept
 

Detailed Description

This is a TS C++ Library header.

Definition in file experimental/memory_resource.

Function Documentation

◆ get_default_resource()

memory_resource * std::experimental::fundamentals_v2::pmr::get_default_resource ( )
inlinenoexcept

Get the current default resource.

Get the current default memory resource pointer.

Definition at line 574 of file experimental/memory_resource.

◆ null_memory_resource()

memory_resource * std::experimental::fundamentals_v2::pmr::null_memory_resource ( )
inlinenoexcept

A pmr::memory_resource that always throws bad_alloc

Definition at line 527 of file experimental/memory_resource.

◆ set_default_resource()

memory_resource * std::experimental::fundamentals_v2::pmr::set_default_resource ( memory_resource *  __r)
inlinenoexcept

Change the default resource and return the previous one.

Definition at line 579 of file experimental/memory_resource.