다음을 통해 공유


unordered_set::allocator_type

저장소 관리를 위한 할당자의 형식입니다.

typedef Alloc allocator_type;

설명

The type is a synonym for the template parameter Alloc.

예제

 

// std_tr1__unordered_set__unordered_set_allocator_type.cpp 
// compile with: /EHsc 
#include <unordered_set> 
#include <iostream> 
 
typedef std::unordered_set<char> Myset; 
typedef std::allocator<std::pair<const char, int> > Myalloc; 
int main() 
    { 
    Myset c1; 
 
    Myset::allocator_type al = c1.get_allocator(); 
    std::cout << "al == std::allocator() is " 
        << std::boolalpha << (al == Myalloc()) << std::endl; 
 
    return (0); 
    } 
 
  

요구 사항

헤더: <unordered_set>

네임스페이스: std

참고 항목

참조

<unordered_set>

unordered_set 클래스

기타 리소스

<unordered_set> 멤버