Reference

class template
<queue>

std::uses_allocator<priority_queue>

template <class T, class Container, class Compare, class Alloc> struct uses_allocator<priority_queue<T,Container,Compare>,Alloc>;
Uses allocator for priority queue
This trait specialization of uses_allocator informs whether the priority_queue accepts an allocator convertible from Alloc, by inheriting either from true_type or from false_type/samp>.

It is equivalent to the uses_allocator instantiation for its underlying container.

It is defined in <queue> as:
1
2
3
template <class T, class Container, class Compare, class Alloc>
 struct uses_allocator<priority_queue<T,Container,Compare>,Alloc>
 : uses_allocator<Container,Alloc>::type {}

See also

uses_allocator
Uses allocator (class template)
priority_queue::priority_queue
Construct priority queue (public member function)

AltStyle によって変換されたページ (->オリジナル) /