11#ifndef MSGPACK_V1_TYPE_CPP11_SHARED_PTR_HPP
12#define MSGPACK_V1_TYPE_CPP11_SHARED_PTR_HPP
33 return std::make_shared<T>(
o.as<
T>());
40 if(
o.is_nil())
v.reset();
42 v = std::make_shared<T>();
51 template <
typename Stream>
63 else o.type = msgpack::type::NIL;
71 else o.type = msgpack::type::NIL;
The class template that supports continuous packing.
Definition pack.hpp:33
Definition adaptor_base.hpp:15
std::shared_ptr< T > operator()(msgpack::object const &o) const
Definition shared_ptr.hpp:31
Definition object_fwd_decl.hpp:61
msgpack::object const & operator()(msgpack::object const &o, std::shared_ptr< T > &v) const
Definition shared_ptr.hpp:39
Definition adaptor_base.hpp:27
void operator()(msgpack::object &o, const std::shared_ptr< T > &v) const
Definition shared_ptr.hpp:61
void operator()(msgpack::object::with_zone &o, const std::shared_ptr< T > &v) const
Definition shared_ptr.hpp:69
Definition adaptor_base.hpp:43
Definition adaptor_base.hpp:38
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const std::shared_ptr< T > &v) const
Definition shared_ptr.hpp:52
Definition adaptor_base.hpp:32
Object class that corresponding to MessagePack format object.
Definition object_fwd.hpp:75
#define MSGPACK_NULLPTR
Definition cpp_config_decl.hpp:85
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition versioning.hpp:66