Talk:cpp/language/pimpl
"If non-default allocators are intended to be supported for the allocation of the implementation object, any of the usual allocator awareness patterns may be utilized, including allocator template parameter defaulting to std::allocator and constructor argument of type std::pmr::memory_resource*."
The part about an "allocator template parameter" doesn't seem correct (or at least not obvious how to do correctly). The size of the implementation is defined in the implementation file, but a function templated on the allocator type would need to be in the header file.
--64.94.36.4 12:03, 17 July 2018 (PDT) SJL
This is more advanced description with mentioning pretty safe Fast PIMPL versions. https://www.cppstories.com/2018/01/pimpl/ --109.245.225.192 06:02, 28 August 2023 (PDT)
- The link was added to the external links section. Thank you.) --Space Mission (talk) 07:15, 28 August 2023 (PDT)