다음을 통해 공유


stack::get_container (STL/CLR)

기본 컨테이너에 액세스합니다.

    container_type^ get_container();

설명

멤버 함수는 기본 컨테이너에 대 한 핸들을 반환합니다.이 컨테이너 래퍼에서 지정한 제한을 무시할 수 있습니다.

예제

// cliext_stack_get_container.cpp 
// compile with: /clr 
#include <cliext/stack> 
 
typedef cliext::stack<wchar_t> Mystack; 
int main() 
    { 
    Mystack c1; 
    c1.push(L'a'); 
    c1.push(L'b'); 
    c1.push(L'c'); 
 
// display contents " a b c" using container_type 
    Mystack::container_type wc1 = c1.get_container(); 
    for each (wchar_t elem in wc1) 
        System::Console::Write(" {0}", elem); 
    System::Console::WriteLine(); 
    return (0); 
    } 
 
  

요구 사항

헤더: < cliext/스택 >

네임 스페이스: cliext

참고 항목

참조

stack (STL/CLR)

stack::container_type (STL/CLR)