Commit 1ecfd5bb authored by Davis King's avatar Davis King

Fixed a typo in the spec.

parent 331b2d75
...@@ -37,10 +37,10 @@ namespace dlib ...@@ -37,10 +37,10 @@ namespace dlib
ensures ensures
- #size() == new_size - #size() == new_size
- #max_size() == max(new_size,max_size()) - #max_size() == max(new_size,max_size())
- for all i < size(): - for all i < size() && i < new_size:
- #(*this)[i] == (*this)[i] - #(*this)[i] == (*this)[i]
(i.e. all the original elements of *this are still present (i.e. All the original elements of *this which were at index
and at their same positions.) values less than new_size are unmodified.)
- for all valid i >= size(): - for all valid i >= size():
- #(*this)[i] has an undefined value - #(*this)[i] has an undefined value
(i.e. any new elements of the array have an undefined value) (i.e. any new elements of the array have an undefined value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment