wrench::PointerUtil
-
class wrench::PointerUtil
A helper class that implements useful smart pointer operations.
Public Static Functions
A helper method to move a shared_ptr from a set to another.
- Template Parameters
template – class
- Parameters
it – iterator
from – pointer to the set in which the object is
to – pointer to the set to which the object should be moved
-
template<class T>
static inline void moveUniquePtrFromSetToSet(typename std::set<std::unique_ptr<T>>::iterator it, std::set<std::unique_ptr<T>> *from, std::set<std::unique_ptr<T>> *to) A helper method to move a unique_ptr from a set to another.
- Template Parameters
template – class
- Parameters
it – iterator
from – pointer to the set in which the object is
to – pointer to the set to which the object should be moved