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

Comment by HolyBlackCat on How do you deduce the size of a std::array?

$
0
0
to_array is good when you want to force a specific element type, but causes the elements to be moved from a temporary array. So if you don't need to manually set the element type, prefer std::array{...}.

Viewing all articles
Browse latest Browse all 1290

Trending Articles



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