Atoms Crowd  4.1.0
AtomsUtils::rcScopedStructArrayDelete< T > Class Template Reference

#include <RecastAlloc.h>

Public Member Functions

 rcScopedStructArrayDelete (const int n)
 Constructs an array of instances of T.
 
 operator T* ()
 

Detailed Description

template<class T>
class AtomsUtils::rcScopedStructArrayDelete< T >

A simple helper class used to delete an array of instances of structs, that require cleaning up by calling destructor on every instance before release. Releasing is taking place when rcScopedStructArrayDelete instance goes out of scope.

Note
if T doesn't require a destructor to be called use rcScopedDelete instead.

Member Function Documentation

◆ operator T*()

template<class T >
AtomsUtils::rcScopedStructArrayDelete< T >::operator T* ( )
inline

The root array pointer.

Returns
The root array pointer.

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