TfCopyIfNotReference< T > Class Template Reference

TfCopyIfNotReference<T>::Apply(v) is used to return a pointer to the value v. More...

Static Public Member Functions

static T * Apply (T value)
 

Detailed Description

template<class T>
class TfCopyIfNotReference< T >

TfCopyIfNotReference<T>::Apply(v) is used to return a pointer to the value v.

If T is a non-reference type, then the value returned points to newly constructed dynamic space, which the caller must free. Otherwise, the returned value is the address of v.

Definition at line 114 of file typeFunctions.h.


The documentation for this class was generated from the following file: