Skip to content

Glossary: C++ Beyond the Basics

transform (std::expected)

Also written: .transform

A `std::expected` member that runs a function on the value and wraps the result. On an error it skips the function and passes the error along.

Where the book teaches it

Related terms

std::expectedand_then