다음을 통해 공유


unordered_multimap::allocator_type

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

typedef Alloc allocator_type;

설명

The type is a synonym for the template parameter Alloc.

예제

 

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

요구 사항

헤더:<unordered_map>

네임스페이스: std

참고 항목

참조

<unordered_map>

unordered_multimap 클래스

기타 리소스

<unordered_map> 멤버