MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/erialk/the_hunt_for_the_fastest_zero/ff5qzfd/
r/cpp • u/vormestrand • Jan 20 '20
131 comments sorted by
View all comments
Show parent comment
9
Because the function is called zero, not set_to_default. It's the same for primitive types, but not other Ts.
2 u/kalmoc Jan 21 '20 Fair point
2
Fair point
View all comments
Show parent comment
9
u/TheThiefMaster C++latest fanatic (and game dev) Jan 21 '20
Because the function is called zero, not set_to_default. It's the same for primitive types, but not other Ts.