MySQL 9.1.0
Source Code Documentation
expected_ostream.h File Reference
#include "mysql/harness/stdx/expected.h"
#include <ostream>
#include <type_traits>

Go to the source code of this file.

Classes

struct  stdx::impl::is_to_stream_writable< S, T, typename >
 
struct  stdx::impl::is_to_stream_writable< S, T, std::void_t< decltype(std::declval< S & >()<< std::declval< T >())> >
 

Namespaces

namespace  stdx
 
namespace  stdx::impl
 

Functions

template<class T , class E >
requires ((impl::is_to_stream_writable<std::ostream, T>::value && impl::is_to_stream_writable<std::ostream, E>::value))
std::ostream & stdx::operator<< (std::ostream &os, const stdx::expected< T, E > &res)
 write stdx::expected<T, E> to std::ostream. More...
 
template<class E >
requires (impl::is_to_stream_writable<std::ostream, E>::value)
std::ostream & stdx::operator<< (std::ostream &os, const stdx::expected< void, E > &res)
 write stdx::expected<void, E> to std::ostream. More...
 
template<class E >
requires (impl::is_to_stream_writable<std::ostream, E>::value)
std::ostream & stdx::operator<< (std::ostream &os, const stdx::unexpected< E > &res)
 write stdx::unexpected<E> to std::ostream. More...