The const-qualified all() member method triggers undefined behaviour if the option passed to it is not set.