Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1287

Comment by HolyBlackCat on How to implement an array that can grow up to a limit and never allocates?

$
0
0
@Gene You can't do this with std::allocator, or at least not directly. Allocator requirements force it to be copyable, and the copy must be able to free the memory allocated by the original.

Viewing all articles
Browse latest Browse all 1287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>