mardi 25 septembre 2018

shared_ptr of a templated type enclosing it

Is it possible to have shared_ptr pointing to a templated type enclosing it? For example,

pair<shared_ptr<ThisPairType>, int>

How should this be defined?

Aucun commentaire:

Enregistrer un commentaire