TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 230 subscribers
Post #25139 18
A few occasionally useful template container classes I made, Released under the Unlicense.

Written against C++ 20 although these templates would almost definitely work on lower versions. The repository is available [here](https://git.redacted.cc/Redacted/Containers/src/branch/main). Each is in it's own header so you can just copy them out.

* Circular Array (Similar to std::queue with additional features)
* Strided Span (I think c++ 23 has something like this, Acts as a memory view in to a continuous data structure where we can skip elements while still having it presented as continuous)
* Mapped Array (unordered\_map where the actual values are located in an std::vector for good cache locality during iteration and fast lookup for any one element)

I'm definitely not best programmer ever so sorry if there's bugs lol.

https://redd.it/1t52t5w
@r_cpp
git Containers Template class containers which are situationally useful.
More from @r_cpp
  1. Oct 3, 2026You should think about recompiling your C++ programs with GCC 16 and C++26, because it zer…
  2. Oct 3, 2026Teodorescu - [https://youtu.be/vVFFW6hoG1Y](https://youtu.be/vVFFW6hoG1Y) * Demystifying C…
  3. Oct 3, 2026New C++ Conference Videos Released This Month - September 2026 (Updated To Include Videos…
  4. Oct 3, 2026HPX 2.0.0 RC1 Released! – The HPX Project HPX is a general-purpose parallel C++ runtime sy…
  5. Oct 3, 2026[PLDI'26] Persistent Iterators with Value Semantics https://www.youtube.com/watch?v=cq33C5…
  6. Oct 3, 2026A Cross-Toolkit Timeline Control, Wed, Oct 14, 2026, 6:00 PM https://www.meetup.com/utah-c…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →