engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
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. 更多...

#include <RecastAlloc.h>

Public 成员函数

 operator T* ()
 The root array pointer. 更多...
 
 rcScopedStructArrayDelete (const int n)
 Constructs an array of instances of T
 

详细描述

template<class T>
class 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.

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

成员函数说明

◆ operator T*()

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

The root array pointer.

返回
The root array pointer.

该类的文档由以下文件生成: