9 #ifndef FAIR_MQ_SDK_ASIOBASE_H 10 #define FAIR_MQ_SDK_ASIOBASE_H 12 #include <asio/executor.hpp> 13 #include <fairmq/sdk/Traits.h> 21 using DefaultExecutor = asio::executor;
22 using DefaultAllocator = std::allocator<int>;
34 template<
typename Executor,
typename Allocator>
52 explicit AsioBase(Executor ex, Allocator alloc)
53 : fExecutor(
std::move(ex))
54 , fAllocator(
std::move(alloc))
Executor ExecutorType
Member type of associated I/O executor.
Definition: AsioBase.h:39
Allocator AllocatorType
Member type of associated default allocator.
Definition: AsioBase.h:44
auto GetExecutor() const noexcept -> ExecutorType
Get associated I/O executor.
Definition: AsioBase.h:41
AsioBase(Executor ex, Allocator alloc)
Construct with associated I/O executor.
Definition: AsioBase.h:52
auto GetAllocator() const noexcept -> AllocatorType
Get associated default allocator.
Definition: AsioBase.h:46
Base for creating Asio-enabled I/O objects.
Definition: AsioBase.h:35
AsioBase()=delete
NO default ctor.
Tools for interfacing containers to the transport via polymorphic allocators.
Definition: DeviceRunner.h:23