mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
graph: remove map key test with map size
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
parent
33da5e4ff7
commit
d5ff9a1b53
1 changed files with 0 additions and 3 deletions
|
@ -42,9 +42,6 @@ public:
|
|||
|
||||
std::shared_ptr<VertexType> getVertex(VertexIdentifier vertexId) const
|
||||
{
|
||||
if (vertexId >= vertices.size())
|
||||
throw std::invalid_argument("vertex doesn't exist");
|
||||
|
||||
// Cannot use [] operator, because creates non-existing elements
|
||||
// at() will throw std::out_of_range if element does not exist
|
||||
return vertices.at(vertexId);
|
||||
|
|
Loading…
Add table
Reference in a new issue