ivutils
|
helper class for LocalPointer. More...
#include <omp_pointers.h>
Static Public Member Functions | |
static T * | make_copy (const T *original=nullptr) |
Makes copy of original using copy constructor. | |
static void | wipe_copy (T *copy) |
for DiagnosticPointer | |
helper class for LocalPointer.
This class describes how we make copy from original, how we destroy copy and how we join the original and copy. Sometimes we need something to correct already written data like indices after join. That something is returned by join function. To avoid problems with deduce return type join return type is declared as member type join_t. If join returns something other than join_t behaviour is undefined.
|
inlinestatic |
Makes copy of original using copy constructor.
If original is nullptr then we make instance of T with default constructor