Cpp-standard-library-cpp-allocator-traits

提供:Dev Guides
移動先:案内検索

C ++メモリライブラリ-allocator_traits

説明

アロケータタイプに統一されたインターフェイスを提供します。

宣言

以下は、std
allocator_traits関数の宣言です。
template <class Alloc> struct allocator_traits;

C 11

template <class Alloc> struct allocator_traits;

パラメーター

*T* -要素のタイプに関する情報が含まれています。

メンバーの種類

Type Definition
allocator_type Template parameter
value_type allocator_type::value_type
pointer allocator_type::pointer
const_pointer (deprecated in C++17) const T*
reference (deprecated in C++17) T&
const_reference (deprecated in C++17) const T&
size_type (deprecated in C++17) std::size_t
difference_type(deprecated in C++17) std::ptrdiff_t
propagate_on_container_move_assignment (C++14) std::true_type
rebind (deprecated in C++17) template<class U >struct rebind \{ typedef allocator<U>other;};
rebind_traits<T> allocator_traits<rebind_alloc<T>>