Daily Archives: February 28, 2018


code
Syntax [crayon-5c6d2e924324f821983733/] std::optional behaves as a variant of a type T and the value std::nullopt. We can set the value as we would do with any other type, but we can also assign it to std::nullopt – instead of returning nullptr, -1, 0, “”, or whatever we’d expect to receive […]

Library feature: std::optional