Skip to content

Latest commit

 

History

History
88 lines (76 loc) · 1.79 KB

File metadata and controls

88 lines (76 loc) · 1.79 KB
title collection_adapter::end (STL/CLR) | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic reference
f1_keywords
cliext::collection_adapter::end
dev_langs
C++
helpviewer_keywords
end member [STL/CLR]
ms.assetid f953a734-2f17-4b68-9ca4-34f980d08887
caps.latest.revision 9
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

collection_adapter::end (STL/CLR)

Designates the end of the controlled sequence.

Syntax

iterator end();  

Remarks

The member function returns an input iterator that points just beyond the end of the controlled sequence.

Example

// cliext_collection_adapter_end.cpp   
// compile with: /clr   
#include <cliext/adapter>   
#include <cliext/deque>   
  
typedef cliext::collection_adapter<   
    System::Collections::ICollection> Mycoll;   
int main()   
    {   
    cliext::deque<wchar_t> d1;   
    d1.push_back(L'a');   
    d1.push_back(L'b');   
    d1.push_back(L'c');   
    Mycoll c1(%d1);   
  
// display initial contents " a b c"   
    Mycoll::iterator it = c1.begin();   
    for (; it != c1.end(); ++it)   
        System::Console::Write(" {0}", *it);   
    System::Console::WriteLine();   
    return (0);   
    }  
  
a b c  

Requirements

Header: <cliext/adapter>

Namespace: cliext

See Also

collection_adapter (STL/CLR)
collection_adapter::begin (STL/CLR)