7#if !defined(ASYNC_MQTT_IS_STRAND_HPP)
8#define ASYNC_MQTT_IS_STRAND_HPP
12#include <boost/asio/strand.hpp>
13#include <boost/asio/io_context.hpp>
17namespace as = boost::asio;
20struct is_strand_template : std::false_type {};
23struct is_strand_template<as::strand<T>> : std::true_type {};
26constexpr bool is_strand() {
28 is_strand_template<T>::value ||
29 std::is_same_v<T, as::io_context::strand>;