range_adapter (STL/CLR)
The template class describes an object that wraps a pair of iterators to implement several BCL interfaces. You use it to manipulate an STL/CLR range as if it were a BCL collection.
template<typename Iter>
ref class range_adapter
: public
System::Collections::IEnumerable,
System::Collections::ICollection,
System::Collections::Generic::IEnumerable<Value>,
System::Collections::Generic::ICollection<Value>
{ ..... };
Parameters
- Iter
The type of the wrapped iterators.
Members
Member Function |
Description |
---|---|
Constructs an adapter object. |
Operator |
Description |
---|---|
Replaces the stored iterator pair. |
Interfaces
Interface |
Description |
---|---|
Sequence through elements. |
|
Maintain group of elements. |
|
Sequence through typed elements. |
|
Maintain group of typed elements. |
Remarks
The object stores a pair of iterators, which in turn delimits a sequence of elements. The object implements four BCL interfaces that let you visit the elements, in order, following the usual BCL idioms. You use this template class to manipulate STL/CLR ranges much like BCL containers.
Requirements
Header: <cliext/adapter>
Namespace: cliext