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.
In the previous article there was similar code: