array::cend
최종 이전 반복기를 반환합니다.
const_iterator cend( ) const;
반환 값
배열에 대 한 const 끝 과거 반복기입니다.배열이 비어 있는 경우 array::cend() == array::cbegin().
설명
반환 값의 array::cend (적절 한 감소)는 array Class (TR1) 개체를 수정할 수 없습니다.
예제
// array_cend.cpp
// compile with: /EHsc
#include <array>
#include <iostream>
int main( )
{
using namespace std;
array<int, 2> v1 = {1, 2};
array<int, 2>::const_iterator v1_Iter;
for ( v1_Iter = v1.cbegin( ) ; v1_Iter != v1.cend( ) ; v1_Iter++ )
cout << *v1_Iter << endl;
}
요구 사항
헤더: <array>
네임 스페이스: std