1 #ifndef PICHI_STREAM_TRAITS_HPP 2 #define PICHI_STREAM_TRAITS_HPP 3 4 namespace pichi::stream { 5 6 template <typename Stream> struct AsyncStream : public std::true_type { 7 }; 8 9 template <typename Stream> struct RawStream : public std::true_type { 10 }; 11 12 template <typename Stream> inline constexpr bool IsRawStream = RawStream<Stream>::value; 13 template <typename Stream> inline constexpr bool IsAsyncStream = AsyncStream<Stream>::value; 14 15 } // namespace pichi::stream 16 17 #endif // PICHI_STREAM_TRAITS_HPP 18