Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC++custom allocatorsSingle-choice MCQ

With a `std::pmr::monotonic_buffer_resource`, what happens at the point marked here?

#include <memory_resource> #include <vector> std::pmr::monotonic_buffer_resource pool; std::pmr::vector<int> v{&pool}; v.reserve(1000); v.clear(); v.shrink_to_fit(); // <-- here