Advanced C++
Q96 / 100

What is std::pmr (polymorphic memory resources, C++17)?

Correct! Well done.

Incorrect.

The correct answer is B) A framework providing runtime-selectable memory allocators (pool, monotonic, unsynchronized) without changing container type via std::pmr::memory_resource

B

Correct Answer

A framework providing runtime-selectable memory allocators (pool, monotonic, unsynchronized) without changing container type via std::pmr::memory_resource

Explanation

std::pmr::vector<int> uses a pluggable allocator passed at construction. std::pmr::monotonic_buffer_resource enables arena allocation without changing container types.

Progress
96/100