retained_messages.hpp 628 B

12345678910111213141516171819202122232425
  1. // Copyright Takatoshi Kondo 2020
  2. //
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // (See accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. #if !defined(MQTT_BROKER_RETAINED_MESSAGES_HPP)
  7. #define MQTT_BROKER_RETAINED_MESSAGES_HPP
  8. #include <mqtt/config.hpp>
  9. #include <functional> // reference_wrapper
  10. #include <mqtt/broker/broker_namespace.hpp>
  11. #include <mqtt/broker/retain_t.hpp>
  12. #include <mqtt/broker/retained_topic_map.hpp>
  13. MQTT_BROKER_NS_BEGIN
  14. using retained_messages = retained_topic_map<retain_t>;
  15. MQTT_BROKER_NS_END
  16. #endif // MQTT_BROKER_RETAINED_MESSAGES_HPP