We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7639872 commit 6fbc9f2Copy full SHA for 6fbc9f2
src/dsm/headers/Node.cpp
@@ -48,12 +48,7 @@ namespace dsm {
48
++m_agentCounter;
49
}
50
51
- void Intersection::removeAgent(Id agentId) {
52
- assert((void("Trying to remove an agent not on the node"),
53
- std::erase_if(m_agents, [agentId](const auto& p) {
54
- return p.second == agentId;
55
- }) == 1));
56
- }
+ void Intersection::removeAgent(Id agentId) { m_agents.erase(agentId); }
57
58
Size Intersection::agentCounter() {
59
Size copy{m_agentCounter};
0 commit comments