다음을 통해 공유


unordered_set::allocator_type

저장소 관리는 할당자의 형식입니다.

typedef Alloc allocator_type;

설명

형식 템플릿 매개 변수에 대 한 동의어입니다 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>

네임 스페이스: 국방 표준

참고 항목

참조

<unordered_set>

unordered_set Class

기타 리소스

<unordered_set> 멤버