| 96 | } |
| 97 | |
| 98 | std::tuple<ASTLabelRegistry::LabelID, bool> ASTLabelRegistryBuilder::DefinedLabels::tryInsert( |
| 99 | std::string_view const _label, |
| 100 | ASTLabelRegistry::LabelID const _id |
| 101 | ) |
| 102 | { |
| 103 | auto const [it, emplaced] = m_labelToIDMapping.try_emplace(std::string{_label}, _id); |
| 104 | return std::make_tuple(it->second, emplaced); |
| 105 | } |
| 106 | |
| 107 | ASTLabelRegistryBuilder::ASTLabelRegistryBuilder(): |
| 108 | m_nextID(1) |
no outgoing calls
no test coverage detected