From 606d3470542a3112ce6d67d4a493b98be6ea2c94 Mon Sep 17 00:00:00 2001 From: glisse Date: Wed, 9 Sep 2015 16:08:03 +0000 Subject: Minor clean-up. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/copy_move@779 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: dbb319a592f041cccfa54f50cee2554d423a2291 --- src/Simplex_tree/include/gudhi/Simplex_tree.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/Simplex_tree') diff --git a/src/Simplex_tree/include/gudhi/Simplex_tree.h b/src/Simplex_tree/include/gudhi/Simplex_tree.h index b8c62cd1..05c493dd 100644 --- a/src/Simplex_tree/include/gudhi/Simplex_tree.h +++ b/src/Simplex_tree/include/gudhi/Simplex_tree.h @@ -503,7 +503,7 @@ class Simplex_tree { Simplex_handle find_simplex(const std::vector & simplex) { Siblings * tmp_sib = &root_; Dictionary_it tmp_dit; - Vertex_handle last = simplex[simplex.size() - 1]; + Vertex_handle last = simplex.back(); for (auto v : simplex) { tmp_dit = tmp_sib->members_.find(v); if (tmp_dit == tmp_sib->members_.end()) { @@ -576,10 +576,10 @@ class Simplex_tree { * The filtration value * assigned to the new simplex must preserve the monotonicity of the filtration. * - * The type RandomAccessVertexRange must be a range for which .begin() and - * .end() return random access iterators, with 'value_type' Vertex_handle. */ - template - std::pair insert_simplex(const RandomAccessVertexRange & simplex, + * The type InputVertexRange must be a range for which .begin() and + * .end() return input iterators, with 'value_type' Vertex_handle. */ + template + std::pair insert_simplex(const InputVertexRange & simplex, Filtration_value filtration) { auto first = std::begin(simplex); auto last = std::end(simplex); -- cgit v1.2.3