hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.3K
active users

Šimon Tóth

The C++23 standard introduced a monadic interface for std::optional<T>.

- transform(f(T)->U)->std::optional<U>

only invoked when the source isn't empty

- and_then(f(T)->std::optional<U>)->std::optional<U>

only invoked when the source isn't empty

- or_else(f()->std::optional<T>)->std::optional<T>

only invoked when the source is empty

Compiler Explorer link: compiler-explorer.com/z/4dzc77