unordered_multiset::allocator_type
The type of an allocator for managing storage.
typedef Alloc allocator_type;
Remarks
The type is a synonym for the template parameter Alloc.
Example
// std_tr1__unordered_set__unordered_multiset_allocator_type.cpp
// compile with: /EHsc
#include <unordered_set>
#include <iostream>
typedef std::tr1::unordered_multiset<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);
}
al == std::allocator() is true
Requirements
Header: <unordered_set>
Namespace: std::tr1