32#ifndef _QX_SERIALIZE_QDATASTREAM_STD_SHARED_PTR_H_
33#define _QX_SERIALIZE_QDATASTREAM_STD_SHARED_PTR_H_
46#include <QtCore/qdatastream.h>
49QDataStream &
operator<< (QDataStream & stream,
const std::shared_ptr<T> & t)
51 qint8 iIsNull = (t ? 0 : 1);
53 if (t) { stream << (* t); }
58QDataStream &
operator>> (QDataStream & stream, std::shared_ptr<T> & t)
62 if (! iIsNull) { t = std::make_shared<T>(); stream >> (* t); }
QDataStream & operator>>(QDataStream &stream, std::shared_ptr< T > &t)
QDataStream & operator<<(QDataStream &stream, const std::shared_ptr< T > &t)