std::front_...ert_iterator(3)
π NAME π
std::front_insert_iterator::front_insert_iterator β that's the whole name, bestie, no cap. This is the std::front_...ert_iterator(3) page from the C++ Standard Libary (yes, the header spells it like that, and we're keeping it π
). It's all about the constructor for std::front_insert_iterator, and it's lowkey iconic.
β¨ Synopsis β¨
explicit front_insert_iterator( Container& c ); (until C++20)
constexpr explicit front_insert_iterator( Container& c ); (since C++20)
Initializes the underlying pointer to the container to std::addressof(c). That's the whole move. β¨
πΈ Parameters πΈ
cβ container to initialize the inserter with.
π¦ Defect reports π¦
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
- DR:
P2325R3- Applied to:
C++20β and yes, the source row also has a secondC++20floating around in it, so here's that too:C++20. Formatting chaos, but the facts stay. π - Behavior as published: default constructor was provided as requirement iterators must be default_initializable
- Correct behavior: removed along with the requirement
- Applied to:
source: http://cppreference.com Β· date: 2024.06.10 Β· page: std::front_...ert_iterator(3) β mwah π go insert at the front, bestie π«Ά
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms