Check if the path has no segments.
bool empty() const;
Returns true if there are no segments in the path, i.e. size() returns 0.
true
size()
Constant.
No-throw guarantee.