carb::stats::CARB_STRONGTYPE
Defined in examples/example.stats/include/carb/stats/IStats.h
-
carb::stats::CARB_STRONGTYPE(StatId, size_t)
Base type for the identifier for a single statistic value.
We’ll use a strong type here to prevent callers from being able to easily manipulate the returned identifier outside of this interface. Using CARB_STRONGTYPE() simply wraps the integer value in a strongly typed object that makes it safer to use. As far as the caller knows however, this is just a simple opaque identifier object for a registered statistic.