Valarray and Custom Distributor

Why std::valarraydoesn't it support custom allocators? How is memory management designed? Is the base used newor the dispenser based on malloc? All other containers usually provide the ability to specify a custom dispenser. Say, std::vectorin libstdc++have the corresponding template parameter Allocator, and I can specify __gnu_cxx::__mt_allocas a dispenser.

+4
source share
1 answer

Why doesn't std :: valarray support custom allocators?

std::valarray (Like std::vector). , SIMD .

:

std:: valarray , C . , , valarray -, , [...], .

, . , .

0

Source: https://habr.com/ru/post/1545549/


All Articles