mqtt_cpp
session_present.hpp
Go to the documentation of this file.
1 // Copyright Takatoshi Kondo 2015
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 
7 #if !defined(MQTT_SESSION_PRESENT_HPP)
8 #define MQTT_SESSION_PRESENT_HPP
9 
10 #include <mqtt/namespace.hpp>
11 
12 namespace MQTT_NS {
13 
14 constexpr bool is_session_present(char v) {
15  return v & 0b00000001;
16 }
17 
18 } // namespace MQTT_NS
19 
20 #endif // MQTT_SESSION_PRESENT_HPP
Definition: any.hpp:27
constexpr bool is_session_present(char v)
Definition: session_present.hpp:14