Re:A quick primer on type traits in modern C++
by ahartmetz on Saturday February 29, 2020 @10:21AM
(#22450964)
I have an example for you.
A serialization library that supports container classes. It has a generic way to fill lists (vectors), but not all list containers support resize and default-initialize new elements. So somewhere inside a generic template function there is a switch to use or replicate that function.
[ Parent
| on HN ]
There are no comments on this comment yet.