__gnu_pbds::ran...ation_guarantee(3cxx)
π __gnu_pbds::range_invalidation_guarantee
ok so bestie, welcome to the libstdc++ manual, section 3cxx β this page is all about one very specific little trait struct, and honestly? it's giving "niche but iconic". π
β¨ NAME β¨
__gnu_pbds::range_invalidation_guarantee β the trait that says "your iterators stay put, even when the container gets a whole makeover" π«
π¦ SYNOPSIS π¦
#include <tag_and_trait.hpp>
Inherits __gnu_pbds::point_invalidation_guarantee.
πΈ Detailed Description πΈ
Okay so here's the tea β β this thing signifies an invalidation guarantee that includes all the guarantees of its base class, and then some. Specifically, it promises that any range-type iterator (and yes, that includes whatever begin() and end() hand back to you, bestie) stays in the correct relative positions to other range-type iterators β as long as its corresponding entry hasn't been erased. And that holds regardless of modifications to the container object. no cap. π₯
literally the main character of iterator stability β modified container? doesn't matter. erased entry? okay yeah, then it's over π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. (so no human author to thank, it just spawned itself, slay β¨)
okk that's the whole page, short and sweet fr fr π«Ά β this was __gnu_pbds::range_invalidation_guarantee from the libstdc++ docs, page 3cxx, auto-generated by Doxygen from the source code. mwah, go forth and keep those iterators valid ππβ
π¦ where this page comes from
- debian trixie: libstdc++-12-doc 12.4.0-5
- debian trixie: libstdc++-13-doc 13.3.0-16
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- ubuntu noble: libstdc++-12-doc 12.3.0-17ubuntu1
- ubuntu noble: libstdc++-12-doc 12.4.0-2ubuntu1~24.04.1
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-13-doc 13.3.0-6ubuntu2~24.04.1
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- ubuntu questing: libstdc++-12-doc 12.5.0-6ubuntu1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- ubuntu questing: libstdc++-14-doc 14.3.0-8ubuntu1
- ubuntu questing: libstdc++-15-doc 15.2.0-4ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms