| 116 | return table; |
| 117 | } |
| 118 | LineTable::Entry* LineTable::TryLookup_(const std::string& file, int line) |
| 119 | { |
| 120 | std::shared_lock lk{ mtx_ }; |
| 121 | if (auto i = lines_.find(MakeKey_(file, line)); i != lines_.end()) { |
| 122 | return &i->second; |
| 123 | } |
| 124 | return nullptr; |
| 125 | } |
| 126 | LineTable::Entry& LineTable::Lookup_(const std::string& file, int line) |
| 127 | { |
| 128 | std::shared_lock lk{ mtx_ }; |