Skip to content
Snippets Groups Projects
Commit a8cc7366 authored by Carsten Gräser's avatar Carsten Gräser
Browse files

[cleanup] Drop misleading begin() and end() methods

Maybe they will be reintroduced, once the return iterator-like things.
For now they are not used anyway.
parent 5e5c60c6
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -166,19 +166,13 @@ namespace Imp { ...@@ -166,19 +166,13 @@ namespace Imp {
end_(end) end_(end)
{} {}
const T& begin() const
{ return begin_; }
const T& end() const
{ return end_; }
constexpr auto size() const constexpr auto size() const
{ {
return end() - begin(); return end_ - begin_;
} }
constexpr T operator[](const T&i) const constexpr T operator[](const T&i) const
{ return begin()+i; } { return begin_+i; }
private: private:
T begin_; T begin_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment