FairMQ
1.4.33
C++ Message Queuing Library and Framework
|
9 #ifndef FAIR_MQ_SDK_ASIOBASE_H
10 #define FAIR_MQ_SDK_ASIOBASE_H
12 #include <asio/any_io_executor.hpp>
13 #include <fairmq/sdk/Traits.h>
17 namespace fair::mq::sdk
20 using DefaultExecutor = asio::any_io_executor;
21 using DefaultAllocator = std::allocator<int>;
33 template<
typename Executor,
typename Allocator>
51 explicit AsioBase(Executor ex, Allocator alloc)
52 : fExecutor(std::move(ex))
53 , fAllocator(std::move(alloc))
AsioBase(Executor ex, Allocator alloc)
Construct with associated I/O executor.
Definition: AsioBase.h:57
Base for creating Asio-enabled I/O objects.
Definition: AsioBase.h:41
auto GetExecutor() const noexcept -> ExecutorType
Get associated I/O executor.
Definition: AsioBase.h:46
auto GetAllocator() const noexcept -> AllocatorType
Get associated default allocator.
Definition: AsioBase.h:51
Allocator AllocatorType
Member type of associated default allocator.
Definition: AsioBase.h:49
AsioBase()=delete
NO default ctor.
Executor ExecutorType
Member type of associated I/O executor.
Definition: AsioBase.h:44
privacy