Return the number of elements in the container.
std::size_t size() const;
This function returns the number of segments in the underlying path. Empty segments count towards this total.
Throws nothing.