
Episode 118: C++ Allocators with Zach Laine! (Part 2)
Algorithms + Data Structures = Programs
00:00
The Thrust Vector Is a Vector With a Random Access Iterator
The thrust vector takes a forward iterator and it dispatches to the thing that it can work in construction in parallel. And so perhaps you do make a compelling case here. But even for the use cases where I don't want the, you know, the base operations to be paralyzed, I oftentimes don't find myself reaching for a vector. What I really want is the moral equivalent of a vector with my own allocator.
Transcript
Play full episode