実験的ライブラリヘッダー <experimental/memory_resource>
From cppreference.com
< cpp | header | experimental
このヘッダーは、Library Fundamentals TS (v1、v2、v3) の一部です。
目次 |
[編集] クラス
std::experimental::pmr 名前空間で定義されています。 | |
| メモリリソースをカプセル化するクラスのための抽象インターフェース (クラス) | |
| 異なるブロックサイズのプールの割り当てを管理するためのスレッドセーフな memory_resource。 (クラス) | |
| 異なるブロックサイズのプールの割り当てを管理するためのスレッド非セーフな memory_resource。 (クラス) | |
| リソースが破棄されるまで、割り当てられたメモリを解放しない特殊な目的の memory_resource。 (クラス) | |
| 構築された memory_resource に基づいた実行時ポリモーフィズムをサポートするアロケーター。 (クラステンプレート) | |
| アロケーターを memory_resource にアダプトします。 (エイリアステンプレート) | |
[編集] 関数
std::experimental::pmr 名前空間で定義されています。 | |
比較 | |
2つのmemory_resourceを比較する(関数) | |
| 2つのアロケーターを比較します。 (関数テンプレート) | |
グローバルメモリリソース | |
メモリの確保と解放にグローバルなoperator newとoperator deleteを使用する、静的なプログラムワイドなmemory_resourceを返す(関数) | |
割り当てを行わない静的な memory_resource を返します。(関数) | |
デフォルトメモリリソース | |
デフォルトのmemory_resourceを取得する(関数) | |
デフォルトのmemory_resourceを設定する(関数) | |
[編集] シノプシス
namespace std { namespace experimental { inline namespace fundamentals_v1 { namespace pmr { class memory_resource; bool operator==(const memory_resource& a, const memory_resource& b) noexcept; bool operator!=(const memory_resource& a, const memory_resource& b) noexcept; template <class Tp> class polymorphic_allocator; template <class T1, class T2> bool operator==(const polymorphic_allocator<T1>& a, const polymorphic_allocator<T2>& b) noexcept; template <class T1, class T2> bool operator!=(const polymorphic_allocator<T1>& a, const polymorphic_allocator<T2>& b) noexcept; // The name resource_adaptor_imp is for exposition only. template <class Allocator> class resource_adaptor_imp; template <class Allocator> using resource_adaptor = resource_adaptor_imp< typename allocator_traits<Allocator>::template rebind_alloc<char>>; // Global memory resources memory_resource* new_delete_resource() noexcept; memory_resource* null_memory_resource() noexcept; // The default memory resource memory_resource* set_default_resource(memory_resource* r) noexcept; memory_resource* get_default_resource() noexcept; // Standard memory resources struct pool_options; class synchronized_pool_resource; class unsynchronized_pool_resource; class monotonic_buffer_resource; } // namespace pmr } // namespace fundamentals_v1 } // namespace experimental } // namespace std