Encapsulate a plain old C data structure with automatic zero initialization.
More...
#include <tsInitZero.h>
|
|
| InitZero () |
| | Default constructor, zeroe the C structure.
|
| |
| bool | operator< (const InitZero< STRUCT > &other) const |
| | Comparator for containers, no real semantic.
|
| |
|
|
STRUCT | data |
| | Encapsulated plain old C data structure.
|
| |
|
|
static constexpr size_t | SIZE = sizeof(data) |
| | Size in bytes of the encapsulated plain old C data structure.
|
| |
template<typename STRUCT>
struct ts::InitZero< STRUCT >
Encapsulate a plain old C data structure with automatic zero initialization.
- Template Parameters
-
| STRUCT | The plain old C data structure type to encapsulate. |
◆ operator<()
template<typename STRUCT >
Comparator for containers, no real semantic.
- Parameters
-
| other | Other data structure to compare. |
- Returns
- True if the binary content of this data structure is locally less than the content of other.
The documentation for this struct was generated from the following file: