TSDuck v3.44-4659
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::InitZero< STRUCT > Struct Template Reference

Encapsulate a plain old C data structure with automatic zero initialization. More...

#include <tsInitZero.h>

Public Member Functions

 InitZero ()
 Default constructor, zeroe the C structure.
 
bool operator< (const InitZero< STRUCT > &other) const
 Comparator for containers, no real semantic.
 

Public Attributes

STRUCT data
 Encapsulated plain old C data structure.
 

Static Public Attributes

static constexpr size_t SIZE = sizeof(data)
 Size in bytes of the encapsulated plain old C data structure.
 

Detailed Description

template<typename STRUCT>
struct ts::InitZero< STRUCT >

Encapsulate a plain old C data structure with automatic zero initialization.

Template Parameters
STRUCTThe plain old C data structure type to encapsulate.

Member Function Documentation

◆ operator<()

template<typename STRUCT >
bool ts::InitZero< STRUCT >::operator< ( const InitZero< STRUCT > &  other) const
inline

Comparator for containers, no real semantic.

Parameters
otherOther 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: