| 123 | } |
| 124 | |
| 125 | void OpTraitRegistry::do_insert(Typeinfo* type) { |
| 126 | auto&& sd = detail::static_data(); |
| 127 | auto ret = sd.type2reg.emplace(type, trait); |
| 128 | mgb_assert( |
| 129 | ret.second || ret.first->second == trait, |
| 130 | "OpTrait for %s has already been registered", type->name); |
| 131 | } |
| 132 | |
| 133 | OpTraitRegistry OpTraitRegistry::do_insert(const char* name) { |
| 134 | auto&& sd = detail::static_data(); |
nothing calls this directly
no test coverage detected