Skip to content

Glossary: C++ Beyond the Basics

and_then

Also written: .and_then

A `std::expected` member that runs a function on the value, where that function itself returns an `expected`. Errors pass straight through without running it.

Where the book teaches it

Related terms

std::expectedtransform (std::expected)