Question: Someone brought this article to my attention that claims (I’m paraphrasing) the STL term is misused to refer to the entire C++ Standard Library instead of the parts that were taken from SGI STL. (…) it refers to the ...

Question: What are the iterator invalidation rules for C++ containers? Best Answer: C++03 (Source: Iterator Invalidation Rules (C++03)) Insertion Sequence containers vector: all iterators and references before the point of insertion are unaffected, unless the new container size is greater ...

Question: These are two pieces of code that I ran under the C++11 standard. I expected the post-decrement of the iterator to produce the same effect, but these two pieces of code produce completely different results. Where is my understanding ...

Question: I have a single even-sized vector that I want to transform into a vector of pairs where each pair contains always two elements. I know that I can do this using simple loops but I was wondering if there ...

Question: See https://godbolt.org/z/vsd3qfch6. This program compiles on seemingly random versions of compilers. The assertion fails on all versions of MSVC since v19.15, but succeeds on v19.14. It succeeds on GCC 11.2 and before, but fails on current GCC trunk. It ...