priority_queue::get_container (STL/CLR)
기본 컨테이너에 액세스합니다.
container_type get_container();
설명
멤버 함수는 기본 컨테이너를 반환합니다.이 컨테이너 래퍼에서 지정한 제한을 무시할 수 있습니다.
예제
// cliext_priority_queue_get_container.cpp
// compile with: /clr
#include <cliext/queue>
typedef cliext::priority_queue<wchar_t> Mypriority_queue;
int main()
{
Mypriority_queue c1;
c1.push(L'a');
c1.push(L'b');
c1.push(L'c');
// display initial contents " a b c"
for each (wchar_t elem in c1.get_container())
System::Console::Write(" {0}", elem);
System::Console::WriteLine();
return (0);
}
요구 사항
헤더: < cliext/큐 >
네임 스페이스: cliext