Search code examples
What is std::expected in C++?...


c++error-handlingc++-faqc++23std-expected

Read More
When to use std::expected instead of exceptions...


c++exceptionerror-handlingc++23std-expected

Read More
How to bubble up `std::unexpected` values when the expected types are different?...


c++error-handlingstd-expected

Read More
How to remove [[nodiscard]] attribute from std::expected?...


c++visual-c++c++23nodiscardstd-expected

Read More
How can I return directly result of a function call returning std::expected?...


c++algorithmfunctionc++23std-expected

Read More
How can I use `.value()` on `std::expected<T, E>` where `T` is a move-only type?...


c++move-semanticsstd-expected

Read More
How can we forward a failed std::expected up through the call stack...


c++error-handlingc++23std-expected

Read More
How to return a range::view in a std::expected?...


c++std-rangesstd-expected

Read More
Why std::expected's `operator==` is not SFINAE-friendly?...


c++c++23std-expected

Read More
Why does std::expected<T, E> require T to be copy-constructible if it is copy-assignable?...


c++c++23std-expected

Read More
What to do about exceptions which don't fit your Expected error type?...


c++exceptionidiomsc++23std-expected

Read More
Is this behavior of std::expected with move-only types a MSVC bug or undefined behavior?...


c++visual-c++stdc++23std-expected

Read More
Is this a correct convenience wrapper for std::expected?...


c++stdstd-expected

Read More
How to avoid calling the destructor twice when using a factory function with a std::expected return ...


c++embeddedmove-semanticsstd-expected

Read More
std::unexpected constructor constraint...


c++c++23std-expected

Read More
How to use std::expected in conjunction with std::transform?...


c++exceptionstd-expected

Read More
Why are there no monadic operations in std::expected?...


c++c++23std-expected

Read More
BackNext