Specify constness of iterators

This commit is contained in:
Simon Giraudot 2020-08-04 13:16:54 +02:00
parent 0e934b1673
commit 93d64d108a
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ class Feature_set
public:
#ifdef DOXYGEN_RUNNING
using const_iterator = unspecified_type; ///< A random access iterator with value type `Feature_handle`.
using const_iterator = unspecified_type; ///< A random access constant iterator with value type `Feature_handle`.
using iterator = unspecified_type; ///< A random access iterator with value type `Feature_handle`.
#else
using const_iterator = std::vector<Feature_handle>::const_iterator;

View File

@ -41,7 +41,7 @@ class Label_set
public:
#ifdef DOXYGEN_RUNNING
using const_iterator = unspecified_type; ///< A random access iterator with value type `Label_handle`.
using const_iterator = unspecified_type; ///< A random access constant iterator with value type `Label_handle`.
using iterator = unspecified_type; ///< A random access iterator with value type `Label_handle`.
#else
using const_iterator = std::vector<Label_handle>::const_iterator;