MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / castToInt

Method castToInt

include/thundersvm/util/log.h:591–593  ·  view source on GitHub ↗

@brief Casts level to int, useful for iterating through enum.

Source from the content-addressed store, hash-verified

589 static const base::type::EnumType kMaxValid = static_cast<base::type::EnumType>(Level::Info);
590 /// @brief Casts level to int, useful for iterating through enum.
591 static base::type::EnumType castToInt(Level level) {
592 return static_cast<base::type::EnumType>(level);
593 }
594 /// @brief Casts int(ushort) to level, useful for iterating through enum.
595 static Level castFromInt(base::type::EnumType l) {
596 return static_cast<Level>(l);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected