26#ifndef MYSQL_HARNESS_STDX_EXPECTED_OSTREAM_H_
27#define MYSQL_HARNESS_STDX_EXPECTED_OSTREAM_H_
43template <
typename S,
typename T,
typename =
void>
46template <
typename S,
typename T>
48 S, T,
std::void_t<decltype(std::declval<S &>() << std::declval<T>())>>
60template <class T, class E>
61inline std::ostream &operator<<(std::ostream &os,
62 const stdx::expected<T, E> &res)
63 requires((impl::is_to_stream_writable<std::ostream, T>::value &&
64 impl::is_to_stream_writable<std::ostream, E>::value))
80inline std::ostream &operator<<(std::ostream &os,
81 const stdx::expected<void, E> &res)
82 requires(impl::is_to_stream_writable<std::ostream, E>::value)
84 if (!res) os << res.error();
95inline std::ostream &operator<<(std::ostream &os,
96 const stdx::unexpected<E> &res)
97 requires(impl::is_to_stream_writable<std::ostream, E>::value)
Definition: http_server_component.cc:34
Definition: gcs_xcom_synode.h:64
Definition: expected_ostream.h:44