Код: Выделить всё
#include
#include
struct A: std::pmr::memory_resource {
void *do_allocate(std::size_t bytes, std::size_t alignment) {
std::cerr
Подробнее здесь: [url]https://stackoverflow.com/questions/79383122/why-does-synchronized-pool-resource-allocate-bytes-during-initialization[/url]
Мобильная версия