2026-05-18 05:55 UTC
Hate finding out weird idiosyncrasies of C++ at 3AM when I have an assignment due, like come on what do you mean standard library vectors, stacks and queues don't return the element you pop? Worst still, you can index into vectors and deques but you can't index into stacks and queues. To print the contents of a stack or queue you basically have to make a copy you print front then pop, so you can't even just print the element you just popped. Maddening stuff.
Replies (2)
-
@sjolsen@tech.lgbt 2026-05-18 06:01
@mdstevens0612@mas.to yeah the bits of the standard library that come from the STL are kinda ass
-
@argv_minus_one@mastodon.sdf.org 2026-05-18 06:47
@mdstevens0612@mas.to Are iterators a thing in C++? That's what they use in Java and Rust for that sort of thing.