Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore C++23's revolutionary std::expected feature for robust error handling in this comprehensive programming tutorial. Learn how this new standard library addition transforms error management by providing a type-safe alternative to traditional exception-based approaches. Discover the limitations of pre-std::expected error handling methods and understand why this feature represents a significant improvement for C++ developers. Master the implementation of std::expected for effective error handling, including practical examples and real-world applications. Examine advanced features and capabilities that make std::expected a powerful tool for modern C++ development. Apply your knowledge through a detailed file reading use case that demonstrates how to leverage std::expected in complex scenarios, complete with best practices and implementation strategies for production-ready code.
Syllabus
0:00 - Quick look at std::expected
3:30 - Life before std::expected
8:07 - Using std::expected for error handling
12:25 - Some more useful features of std::expected
17:06 - More advanced use case file reading
Taught by
The Cherno