The standard library doesn't come with persistent collections included. Just the fact that they are not standard like in some other languages, causes fragmentation.
As for shared_ptr, they are a good idea when you don't care about performance. And they don't solve cycles, which may appear in some structures (e.g. graphs).
The standard library doesn't come with persistent collections included. Just the fact that they are not standard like in some other languages, causes fragmentation.
As for shared_ptr, they are a good idea when you don't care about performance. And they don't solve cycles, which may appear in some structures (e.g. graphs).