Tuesday, August 25, 2020

C++17: Polymorphic Allocators, Debug Resources and Custom Types

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.

The Goal

In the previous article there was similar code:



from DZone.com Feed https://ift.tt/3li8Fg7

No comments:

Post a Comment