Daily Archives: February 28, 2018

Syntax [crayon-5d134fb4cb5a9299198432/] 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