Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.71 KB

end-function.md

File metadata and controls

57 lines (39 loc) · 1.71 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: end Function
end Function
09/27/2022
collection/Windows::Foundation::Collections::end
end Function
fb837bff-fc76-4bae-9096-facf0e03041c

end function

Returns an iterator that points beyond the end of a collection that is accessed by the specified interface parameter.

Syntax

template <typename T>
    ::Platform::Collections::VectorIterator<T>
    end(IVector<T>^ v);

template <typename T>
    ::Platform::Collections::VectorViewIterator<T>
    end(IVectorView<T>^ v);
template <typename T>
    ::Platform::Collections::InputIterator<T>
    end(IIterable<T>^ i);

Parameters

T
A template type parameter.

v
A collection of Vector<T> or VectorView<T> objects that are accessed by an IVector<T>, or IVectorView<T> interface.

i
A collection of arbitrary Windows Runtime objects that are accessed by an IIterable<T> interface.

Return Value

An iterator that points beyond the end of the collection.

Remarks

The first two function templates return iterators, and the third function template returns an input iterator.

The Platform::Collections::VectorViewIterator object that is returned by end is a proxy iterator that stores elements of type VectorProxy<T>. However, the proxy object is almost never visible to user code. For more information, see Collections (C++/CX).

Requirements

Header: collection.h

Namespace: Windows::Foundation::Collections

See also

Windows::Foundation::Collections Namespace