|
Unit Test Framework Modern C++ API Reference
|
Auxiliary class that augments C structs with a destructor. More...
#include <Tester.hpp>
Inherits T.
Auxiliary class that augments C structs with a destructor.
| T | The type of the struct to augment. |
| R1 | The return type of the initializer function. |
| InitializeFn | The function to call when the struct is created. |
| R2 | The return type of the finalizer function. |
| FinalizeFn | The function to call when the struct is destroyed. |
This class is used to wrap C structs that have a constructor and destructor function. The constructor will call the provided initializer function, and the destructor will call the provided finalizer function. The struct must be trivially destructible.