Skip to content

Commit

Permalink
StrVec polish
Browse files Browse the repository at this point in the history
  • Loading branch information
szhorvat committed Jul 30, 2024
1 parent 2d43de6 commit 864fe83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/strvec.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,15 @@ StrVec::iterator StrVec::begin() {
}

StrVec::iterator StrVec::end() {
return iterator(ptr, ptr->end - ptr->stor_begin);
return iterator(ptr, size());
}

StrVec::const_iterator StrVec::begin() const {
return const_iterator(ptr, 0);
}

StrVec::const_iterator StrVec::end() const {
return const_iterator(ptr, ptr->end - ptr->stor_begin);
return const_iterator(ptr, size());
}

StrVec::const_iterator StrVec::cbegin() const {
Expand Down

0 comments on commit 864fe83

Please sign in to comment.