Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
sktext::gpu::SubRunAllocator::ArrayDestroyer Struct Reference

#include <SubRunAllocator.h>

Public Member Functions

template<typename T >
void operator() (T *ptr)
 

Public Attributes

int n
 

Detailed Description

Definition at line 215 of file SubRunAllocator.h.

Member Function Documentation

◆ operator()()

template<typename T >
void sktext::gpu::SubRunAllocator::ArrayDestroyer::operator() ( T ptr)
inline

Definition at line 218 of file SubRunAllocator.h.

218 {
219 for (int i = 0; i < n; i++) { ptr[i].~T(); }
220 }

Member Data Documentation

◆ n

int sktext::gpu::SubRunAllocator::ArrayDestroyer::n

Definition at line 216 of file SubRunAllocator.h.


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