cpp/filesystem/path/compare

Compares the lexical representations of the path and another path.

@1@ If is nonzero, returns that value. @@ Otherwise, if, returns a value less than zero if is  and a value greater than zero otherwise. @@ Otherwise returns a value less than, equal to or greater than if the relative portion of the path  is respectively lexicographically less than, equal to or greater than the relative portion of. Comparison is performed element-wise, as if by iterating both paths from to  and comparing the result of  for each element. @2@ Equivalent to. @3@ Equivalent to.

Return value
A value less than if the path is lexicographically less than the given path.

A value equal to if the path is lexicographically equal to the given path.

A value greater than if the path is lexicographically greater than the given path.

Exceptions
@2-3@