diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-10-11 00:17:00 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-10-11 00:17:00 +0100 |
| commit | f6cdc2eee5c664d440261c75af5e8df4eaad1505 (patch) | |
| tree | 6337784455f693f6cea66ebcc5565f7daa6702c3 /src | |
| parent | 025b91baca170c82184ab99d042ec1db43ceeb31 (diff) | |
Use std::begin/std::end in containers.hh instead of the method version
Diffstat (limited to 'src')
| -rw-r--r-- | src/containers.hh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/containers.hh b/src/containers.hh index 321a075d..c972d93e 100644 --- a/src/containers.hh +++ b/src/containers.hh @@ -97,8 +97,8 @@ struct FilterView const FilterView& m_view; }; - Iterator begin() const { return {*this, m_container.begin(), m_container.end()}; } - Iterator end() const { return {*this, m_container.end(), m_container.end()}; } + Iterator begin() const { return {*this, std::begin(m_container), std::end(m_container)}; } + Iterator end() const { return {*this, std::end(m_container), std::end(m_container)}; } Container m_container; Filter m_filter; @@ -154,8 +154,8 @@ struct TransformView const TransformView& m_view; }; - Iterator begin() const { return {*this, m_container.begin()}; } - Iterator end() const { return {*this, m_container.end()}; } + Iterator begin() const { return {*this, std::begin(m_container)}; } + Iterator end() const { return {*this, std::end(m_container)}; } Container m_container; Transform m_transform; @@ -225,8 +225,8 @@ struct SplitView Separator separator; }; - Iterator begin() const { return {m_container.begin(), m_container.end(), m_separator}; } - Iterator end() const { return {m_container.end(), m_container.end(), m_separator}; } + Iterator begin() const { return {std::begin(m_container), std::end(m_container), m_separator}; } + Iterator end() const { return {std::end(m_container), std::end(m_container), m_separator}; } Container m_container; Separator m_separator; |
