Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 714
ThomasMcLeod Avatar asked Feb 04 '23 21:02

ThomasMcLeod


1 Answers

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

  • "libstdc++ C++1z status"

  • "libc++ C++1z status"

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

like image 121
Vittorio Romeo Avatar answered Feb 16 '23 00:02

Vittorio Romeo