mqtt_cpp
Functions
MQTT_NS::literals Namespace Reference

Functions

buffer operator""_mb (char const *str, std::size_t length)
 user defined literals for buffer If user use this out of mqtt scope, then user need to declare using namespace literals. When user write "ABC"_mb, then this function is called. The created buffer doesn't hold any lifetimes because the string literals has static strage duration, so buffer doesn't need to hold the lifetime. More...
 

Function Documentation

◆ operator""_mb()

buffer MQTT_NS::literals::operator""_mb ( char const *  str,
std::size_t  length 
)
inline

user defined literals for buffer If user use this out of mqtt scope, then user need to declare using namespace literals. When user write "ABC"_mb, then this function is called. The created buffer doesn't hold any lifetimes because the string literals has static strage duration, so buffer doesn't need to hold the lifetime.

Parameters
strthe address of the string literal
lengththe length of the string literal
Returns
buffer