operator==,!=,<,<=,>,>=(std::experimental::filesystem::path)

Compares two paths lexicographically.

# Declarations

bool operator==( const path& lhs, const path& rhs );

(filesystem TS)

bool operator!=( const path& lhs, const path& rhs );

(filesystem TS)

bool operator<( const path& lhs, const path& rhs );

(filesystem TS)

bool operator<=( const path& lhs, const path& rhs );

(filesystem TS)

bool operator>( const path& lhs, const path& rhs );

(filesystem TS)

bool operator>=( const path& lhs, const path& rhs );

(filesystem TS)

# Parameters

# Return value

true if the corresponding comparison yields, false otherwise.

# Notes

Path equality and equivalence have different semantics.

In the case of equality, as determined by operator==, only lexical representations are compared. Therefore, path(“a”) == path(“b”) is never true.

In the case of equivalence, as determined by equivalent(), it is checked whether two paths resolve to the same file system object. Thus equivalent(“a”, “b”) will return true if the paths resolve to the same file.

# See also