12 return i->second->Create();
24 static std::map<std::string, WeightCalcCreator*> table;
static WeightCalc * Create(const std::string &classname)
static std::map< std::string, WeightCalcCreator * > & GetTable()
decltype(auto) constexpr end(T &&obj)
ADL-aware version of std::end.
static void Register(const std::string &wghcalcname, WeightCalcCreator *creator)