if (my_optional)
do_stuff(*my_optional);
Here's one (explicit)conditional.However if the dereferencing, *my_optional, should be safe, it too would need to perform a conditional check behind the scenes. But it doesn't - as C++ places that on the programmers hand to not sacrifice speed