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::enable_if_t<impl::is_to_stream_writable<std::ostream, T>::value &&
62 impl::is_to_stream_writable<std::ostream, E>::value,
64operator<<(std::ostream &os, const stdx::expected<T, E> &res) {
79inline std::enable_if_t<impl::is_to_stream_writable<std::ostream, E>::value,
81operator<<(std::ostream &os, const stdx::expected<void, E> &res) {
82 if (!res) os << res.error();
93inline std::enable_if_t<impl::is_to_stream_writable<std::ostream, E>::value,
95operator<<(std::ostream &os, const stdx::unexpected<E> &res) {
Definition: authentication.cc:36
Definition: gcs_xcom_synode.h:64
Definition: expected_ostream.h:44