diff options
author | glisse <glisse@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2015-09-09 16:08:03 +0000 |
---|---|---|
committer | glisse <glisse@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2015-09-09 16:08:03 +0000 |
commit | 606d3470542a3112ce6d67d4a493b98be6ea2c94 (patch) | |
tree | 241c4fee7759820c1a598952c7710296356d75f2 | |
parent | 726e052cceda6d79792aceb6acb6f4d72bb99fca (diff) |
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
-rw-r--r-- | src/Simplex_tree/include/gudhi/Simplex_tree.h | 10 |
1 files changed, 5 insertions, 5 deletions
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<Vertex_handle> & 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<class RandomAccessVertexRange> - std::pair<Simplex_handle, bool> 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<class InputVertexRange> + std::pair<Simplex_handle, bool> insert_simplex(const InputVertexRange & simplex, Filtration_value filtration) { auto first = std::begin(simplex); auto last = std::end(simplex); |