deque::size_type (STL/CLR)

부호 있는 두 요소 사이의 거리 유형을 지정 합니다.

    typedef int size_type;

설명

음수가 아닌 요소 개수 종류를 설명합니다.

예제

// cliext_deque_size_type.cpp 
// compile with: /clr 
#include <cliext/deque> 
 
int main() 
    { 
    cliext::deque<wchar_t> c1; 
    c1.push_back(L'a'); 
    c1.push_back(L'b'); 
    c1.push_back(L'c'); 
 
// display initial contents " a b c" 
    for each (wchar_t elem in c1) 
        System::Console::Write(" {0}", elem); 
    System::Console::WriteLine(); 
 
// compute positive difference 
    cliext::deque<wchar_t>::size_type diff = c1.end() - c1.begin(); 
    System::Console::WriteLine("end()-begin() = {0}", diff); 
    return (0); 
    } 
 
  

요구 사항

헤더: < cliext/있지 않은 deque >

네임 스페이스: cliext

참고 항목

참조

deque (STL/CLR)

deque::empty (STL/CLR)