次の方法で共有


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

range_adapter::range_adapter (STL/CLR)

Constructs an adapter object.

Operator

Description

range_adapter::operator= (STL/CLR)

Replaces the stored iterator pair.

Interfaces

Interface

Description

IEnumerable

Sequence through elements.

ICollection

Maintain group of elements.

IEnumerable<T>

Sequence through typed elements.

ICollection<T>

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

See Also

Concepts

collection_adapter (STL/CLR)

make_collection (STL/CLR)