A helper class that implements useful smart pointer operations.
More...
#include <PointerUtil.h>
|
template<class T > |
static void | moveSharedPtrFromSetToSet (typename std::set< std::shared_ptr< T >>::iterator it, std::set< std::shared_ptr< T >> *from, std::set< std::shared_ptr< T >> *to) |
| A helper method to move a shared_ptr from a set to another. More...
|
|
template<class T > |
static 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. More...
|
|
A helper class that implements useful smart pointer operations.
◆ moveSharedPtrFromSetToSet()
template<class T >
static void wrench::PointerUtil::moveSharedPtrFromSetToSet |
( |
typename std::set< std::shared_ptr< T >>::iterator |
it, |
|
|
std::set< std::shared_ptr< T >> * |
from, |
|
|
std::set< std::shared_ptr< T >> * |
to |
|
) |
| |
|
inlinestatic |
A helper method to move a shared_ptr from a set to another.
- Template Parameters
-
- 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 |
◆ moveUniquePtrFromSetToSet()
template<class T >
static void wrench::PointerUtil::moveUniquePtrFromSetToSet |
( |
typename std::set< std::unique_ptr< T >>::iterator |
it, |
|
|
std::set< std::unique_ptr< T >> * |
from, |
|
|
std::set< std::unique_ptr< T >> * |
to |
|
) |
| |
|
inlinestatic |
A helper method to move a unique_ptr from a set to another.
- Template Parameters
-
- 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 |
The documentation for this class was generated from the following file: