We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58af97d commit bf4d623Copy full SHA for bf4d623
cpp.fp/optional/optional.cpp
@@ -21,7 +21,7 @@ auto to_int(string_view s) -> optional<int>
21
22
int main(int argc, char* argv[])
23
{
24
- vector_opt<string> v= { "1234", "15 foo", "bar", "42", "5000", " 5" };
+ vector_opt<string> v = { "1234", "15 foo", "bar", "42", "5000", " 5" };
25
26
auto filter = [](auto&& o) {
27
return o.and_then(to_int) // flatmap from str to int
0 commit comments