全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Iterator range?

Definition 5.2 University Computer Science — Year 2 · 第 5 章 — The Standard Library: Containers, Iterators and Algorithms

An iterator range is a pair of iterators first and last of one collection, designating the elements from first up to, but not including, last: the half-open range [first,last)[\texttt{first}, \texttt{last}). It is empty when first == last. c.begin() designates the first element of a container c and c.end() the position just after the last one, which may be compared with but not read.

在原文中阅读 →