## IEnumerable::end() method


获取指向集合中最后一个元素之后的位置的迭代器（如果有）。由于 [GetEnumerator()](../getenumerator/) 返回 T 的拷贝对象，此迭代器不能用于更改引用的对象。

```cpp
iterator System::Collections::Generic::IEnumerable<T>::end()
```


### ReturnValue

一个迭代器，指向集合中最后一个元素（如果有）之后

## 另见

* Typedef [iterator](../iterator/)
* Class [IEnumerable](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
## IEnumerable::end() const method


获取指向集合的 const 限定实例中最后一个元素（如果有）之后的位置的迭代器。

```cpp
const_iterator System::Collections::Generic::IEnumerable<T>::end() const
```


### ReturnValue

一个迭代器，指向集合的 const 限定实例中最后一个元素（如果有）之后

## 另见

* Typedef [const_iterator](../const_iterator/)
* Class [IEnumerable](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
