Why do now what you can do later (or not at all)?
Deferred argument evaluation
by Joaquín M López Muñoz
From the article:
Ideally, we'd like for
try_emplace
to not create the object except when really needed. What we're effectively asking for is some sort of technique for deferred argument evaluation. As it happens, it is very easy to devise our own: ...
Add a Comment
Comments are closed.