MySQL 26.7.0
Source Code Documentation
ut0expected.h File Reference

Minimal implementation of C++23 std::expected. More...

#include <utility>
#include <variant>
#include "db0err.h"
#include "ut0dbg.h"

Go to the source code of this file.

Classes

class  ut::Unexpected< E >
 C++23 std::unexpected. More...
 
class  ut::Expected< T, E >
 C++23 std::expected. More...
 

Namespaces

namespace  ut
 This file contains a set of libraries providing overloads for regular dynamic allocation routines which allow for opt-in memory instrumentation through performance schema memory engine (PFS).
 

Functions

template<class E >
 ut::Unexpected (E) -> Unexpected< E >
 

Detailed Description

Minimal implementation of C++23 std::expected.

https://en.cppreference.com/w/cpp/utility/expected