全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Computer Science · 术语表

什么是 Iterator invalidation?

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

An operation on a container invalidates an iterator, a pointer or a reference to its elements when, after the operation, using it is undefined behaviour. The standard states, for each operation of each container, which ones it invalidates.

在原文中阅读 →