logoalt Hacker News

usefulcat12/08/20251 replyview on HN

I've heard that MSVC does (did?) that, but if so that's an MSVC problem. gcc and clang don't do that.

https://godbolt.org/z/nasoWeq5M


Replies

menaerus12/08/2025

WDYM? Vector is an abstraction over dynamically sized arrays so sure it does use heap to store its elements.

show 1 reply