| async_mqtt 5.0.0
    | 
property variant More...
#include <property_variant.hpp>
| Public Member Functions | |
| template<typename Property , std::enable_if_t< !std::is_same_v< std::decay_t< Property >, property_variant >, std::nullptr_t > * = nullptr> | |
| property_variant (Property &&property) | |
| constructor | |
| template<typename Func > | |
| auto | visit (Func &&func) const & | 
| visit to variant | |
| template<typename Func > | |
| auto | visit (Func &&func) & | 
| visit to variant | |
| template<typename Func > | |
| auto | visit (Func &&func) && | 
| visit to variant | |
| property::id | id () const | 
| Get property_id. | |
| std::size_t | num_of_const_buffer_sequence () const | 
| Get number of element of const_buffer_sequence. | |
| std::vector< as::const_buffer > | const_buffer_sequence () const | 
| Create const buffer sequence. it is for boost asio APIs. | |
| std::size_t | size () const | 
| Get packet size. | |
| template<typename T > | |
| decltype(auto) | get () | 
| Get by type. If not match, then throw std::bad_variant_access exception. | |
| template<typename T > | |
| decltype(auto) | get () const | 
| Get by type. If not match, then throw std::bad_variant_access exception. | |
| template<typename T > | |
| decltype(auto) | get_if () | 
| Get by type pointer. | |
| template<typename T > | |
| decltype(auto) | get_if () const | 
| Get by type pointer. | |
property variant
| 
 | inline | 
constructor
| property | property | 
| 
 | inline | 
Create const buffer sequence. it is for boost asio APIs.
Get by type. If not match, then throw std::bad_variant_access exception.
Get by type. If not match, then throw std::bad_variant_access exception.
Get by type pointer.
Get by type pointer.
| 
 | inline | 
Get property_id.
| 
 | inline | 
Get number of element of const_buffer_sequence.
| 
 | inline | 
Get packet size.
visit to variant
| func | Visitor function | 
visit to variant
| func | Visitor function | 
visit to variant
| func | Visitor function |