Add basic_stream::rebind_executor

This commit is contained in:
Vinnie Falco committed 2019-10-31 06:26:12 -07:00
1 parent 7cc8759261
commit d64e5f718c
2 files changed
+10

No files matched your search

@@ -217,6 +217,15 @@ public:
*/
using executor_type = beast::executor_type<socket_type>;
/// Rebinds the stream type to another executor.
template<class Executor1>
struct rebind_executor
{
/// The stream type when rebound to the specified executor.
using other = basic_stream<
Protocol, Executor1, RatePolicy>;
};
/// The protocol type.
using protocol_type = Protocol;