4 ms·
std::optional is designed for value semantic. It wouldn't make sense to use it to return a pointer-type.
by HippoBaro 8y ago
std::optional is designed for value semantic. It wouldn't make sense to use it to return a pointer-type.
- Koshkin 8y agoBut in C and C++ a pointer is a value.