std:: uses_allocator <std::priority_queue>
|
헤더 파일에 정의됨
<queue>
|
||
|
template
<
class
T,
class
Container,
class
Compare,
class
Alloc
>
struct
uses_allocator
<
std::
priority_queue
<
T, Compare, Container
>
, Alloc
>
|
(C++11부터) | |
std::uses_allocator 타입 트레이트에 대한 투명한 특수화를 제공합니다: std:: priority_queue 의 경우, 기본 컨테이너가 할당자를 사용할 때에만 이 컨테이너 어댑터도 할당자를 사용합니다.
목차 |
std:: integral_constant 에서 상속됨
멤버 상수
|
value
[static]
|
true
(public static member constant) |
멤버 함수
|
operator bool
|
객체를
bool
로 변환,
value
반환
(public member function) |
|
operator()
(C++14)
|
value
반환
(public member function) |
멤버 타입
| 타입 | 정의 |
value_type
|
bool |
type
|
std:: integral_constant < bool , value > |
예제
#include <memory> #include <queue> static_assert( std::uses_allocator<std::priority_queue<int>, void>::value == false && std::uses_allocator<std::priority_queue<int>, std::allocator<int>>::value == true ); int main() {}
참고 항목
|
(C++11)
|
지정된 타입이 uses-allocator 생성 방식을 지원하는지 확인합니다
(클래스 템플릿) |