Manages a queue of cleanup functions to be executed during object destruction.
Подробнее...
#include <VulkanRenderer.h>
|
| void | push_function (std::function< void()> &&function) |
| | Adds a function to the deletion queue.
|
| |
|
void | flush () |
| | Executes all stored deletion functions in reverse order and clears the queue.
|
| |
|
|
std::vector< std::function< void()> > | deletors |
| | List of deletion functions.
|
| |
Manages a queue of cleanup functions to be executed during object destruction.
◆ push_function()
| void DeletionQueue::push_function |
( |
std::function< void()> && | function | ) |
|
|
inline |
Adds a function to the deletion queue.
- Аргументы
-
| function | Function to be executed upon flushing. |
Объявления и описания членов структуры находятся в файле: