ThomasMcLeod
ThomasMcLeod

Reputation: 7779

C++17: compiler support for pmr namespace classes

I want to experiment with pmr::memory_resource for dynamic memory pooling.

This page and this page purport to list C++17 features and indicate compiler support for each. However, I do not find pmr, memory_resource or polymorphic_allocator listed here.

Also, what is the most recent proposal on these proposed features? I found this revised proposal from early 2014. Is that the latest?

Upvotes: 4

Views: 4139

Answers (1)

Vittorio Romeo
Vittorio Romeo

Reputation: 93364

Polymorphic allocator belonging to the pmr namespace are not compiler features; they're new standard library features. You should refer to these pages:

Note that polymorphic memory resources and polymorphic allocators are part of the "Library Fundamentals V1 TS Components for C++17".

  • libstdc++ supports it as part of GCC 9.1

  • libc++ support is marked as "in progress"

    enter image description here

Upvotes: 8

Related Questions