5 ms·
But the dereference operator invokes UB if there is no value. Which is a recurring theme in C++: the default behavior is unsafe (in order to be faster), and th
by afdbcreid 1y ago
But the dereference operator invokes UB if there is no value.
Which is a recurring theme in C++: the default behavior is unsafe (in order to be faster), and there is a method to do the safe thing. Which is exactly the opposite of what it should be.
- account42 1y agoNo, it's the reason people choose C++.