简体   繁体   English

C ++ 17:编译器对pmr名称空间类的支持

[英]C++17: compiler support for pmr namespace classes

I want to experiment with pmr::memory_resource for dynamic memory pooling. 我想尝试使用pmr::memory_resource进行动态内存池。

This page and this page purport to list C++17 features and indicate compiler support for each. 页面和页面声称要列出C ++ 17层的功能和指示每个编译器的支持。 However, I do not find pmr , memory_resource or polymorphic_allocator listed here. 但是,我找不到此处列出的pmrmemory_resourcepolymorphic_allocator

Also, what is the most recent proposal on these proposed features? 另外,关于这些建议功能的最新建议是什么? I found this revised proposal from early 2014. Is that the latest? 我从2014年初就找到了修订提案。这是最新的吗?

Polymorphic allocator belonging to the pmr namespace are not compiler features; 属于pmr名称空间的多态分配器不是编译器功能。 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" . 请注意,多态内存资源和多态分配器是“ C ++ 17的库基础V1 TS组件”的一部分

  • libstdc++ supports it as part of GCC 9.1 libstdc ++作为GCC 9.1的一部分对其提供支持

  • libc++ support is marked as "in progress" libc ++支持被标记为“进行中”

    在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM