|
- #pragma once
-
- namespace asyncpp
- {
-
- template<typename T_impl>
- struct stream_base
- {
- template<typename T_stream>
- static inline auto poll(T_stream& self) = delete;
- };
-
- template<typename T, typename = void>
- struct stream_trait;
-
- template<
- typename T_object,
- typename T_impl = stream_trait<std::decay_t<T_object>>>
- struct stream;
-
- /**
- * @brief Construct a stream from the given value.
- */
- template<typename X_value>
- constexpr decltype(auto) as_stream(X_value&& value);
-
- }
|