ex13.44 about size and length function

Author: relaxcnCreated Nov 13, 2021Updated Apr 5, 2022

in the ex13_44_47.h, the size and length function is different.

cpp
size_t size() const { return end - elements; }
size_t length() const { return end - elements - 1; }

But this website says that they return the same value, they are synonyms.