| 75 | |
| 76 | template <class... Ts> |
| 77 | instruction_ref emplace(instruction_ref pos, Ts&&... xs) |
| 78 | { |
| 79 | changed.notify(); |
| 80 | // cppcheck-suppress redundantInitialization |
| 81 | auto r = instructions.emplace(pos, std::forward<Ts>(xs)...); |
| 82 | instruction_set.insert(std::addressof(*r)); |
| 83 | return r; |
| 84 | } |
| 85 | instruction_ref insert(instruction_ref pos, const instruction& ins) |
| 86 | { |
| 87 | changed.notify(); |