I am in the process of writing a bespoke container class, somewhat streamlined for a particular purpose at work, but potentially of much wider use. (That's why am doing this during weekends so it doesn't end up as company IP. ;-) )
Looking at pmr::polymorphic_allocator
(and e.g. this question), I am wondering if I even should provide a way to use the container with a non-polymorphic allocator (i.e. an allocator provided as template parameter). It seems to me that, with the advent of pmr::polymorphic_allocator
, the non-polymorphic versions of the standard containers are basically kept for compatibility (which, obviously, is not an issue for a new container class).
Am I missing some technical consequence of only providing the "new" (polymorphic) allocator scheme?