operator bool
explicit operator bool() const;
Converts TimeConverter to a bool, returning true if the TimeConverter is initialized and false otherwise.
Example
#include <sst/core/timeConverter.h>
void example::doSomethingWithTimeConverter(TimeConverter tc)
{
if (!tc) {
return;
}
// Do something with tc...
}
Header
#include <sst/core/timeConverter.h