Skip to content
EntityQ2142696· pop 17· linked from 105 articles

迭代器模式

Sign in to save

object-oriented design pattern using an iterator to traverse a container and access the container's elements

Article · 中文

在 物件導向程式設計裡,迭代器模式是一種設計模式,是一種最簡單也最常見的設計模式。它可以讓使用者透過特定的介面巡訪容器中的每一個元素而不用了解底層的實作。 此外,也可以實作特定目的版本的迭代器。

Abstract from DBpedia / Wikipedia · CC BY-SA

迭代器模式 · Vinony