7 #if !defined(MQTT_SHARED_PTR_ARRAY_HPP)
8 #define MQTT_SHARED_PTR_ARRAY_HPP
10 #if defined(_DOXYGEN_)
40 #ifdef MQTT_STD_SHARED_PTR_ARRAY
50 #if __cplusplus > 201703L
51 return std::make_shared<char[]>(
size);
53 return std::shared_ptr<char[]>(
new char[
size]);
61 #include <boost/shared_ptr.hpp>
62 #include <boost/smart_ptr/make_shared.hpp>
70 return boost::make_shared<char[]>(
size);
std::size_t size(basic_message_variant< PacketIdBytes > const &mv)
Definition: message_variant.hpp:93
std::shared_ptr< char[]> shared_ptr_array
Type alias of shared_ptr char array. You can choose the target type.
Definition: shared_ptr_array.hpp:20
shared_ptr_array make_shared_ptr_array(std::size_t size)
shared_ptr_array creating function. You can choose the target type.
std::shared_ptr< char const[]> const_shared_ptr_array
Definition: shared_ptr_array.hpp:21