In my previous article on polymorphic allocators, we discussed some basic ideas. For example, you’ve seen a pmr::vector
that holds pmr::string
using a monotonic resource. How about using a custom type in such a container? How to enable it? Let’s see.
↧
C++17: Polymorphic Allocators, Debug Resources and Custom Types
↧