Answer the question
In order to leave comments, you need to log in
Does plain C++ have a class similar to QSharedData
It is purely academic interest whether there are containers in pure C ++ or at least in Boost with implicit and explicit sharing that implement the Copy on write technique in a similar way to Qt's QSharedData and QSharedDataPointer'u.
Answer the question
In order to leave comments, you need to log in
std::shared_ptr (available in C++11) or boost::shared_ptr (in earlier standards) should be equivalent to QSharedPointer. You just need to pay attention to thread safety.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question