std::experimental::filesystem::directory_entry::operator==,!=,<,<=,>,>= - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::experimental::filesystem::directory_entry::operator==,!=,<,<=,>,>=

From cppreference.com
< cpp‎ | experimental‎ | fs‎ | directory entry

bool operator==( const directory_entry& rhs ) const; | (1) | (filesystem TS)
bool operator!=( const directory_entry& rhs ) const; | (2) | (filesystem TS)
bool operator<( const directory_entry& rhs ) const; | (3) | (filesystem TS)
bool operator<=( const directory_entry& rhs ) const; | (4) | (filesystem TS)
bool operator>( const directory_entry& rhs ) const; | (5) | (filesystem TS)
bool operator>=( const directory_entry& rhs ) const; | (6) | (filesystem TS)

Compares the path with the directory entry `rhs`.

### [edit] Parameters

rhs | - | directory_entry to compare

### [edit] Return value

1) true if path() == rhs.path(), false otherwise.
2) true if path() != rhs.path(), false otherwise.
3) true if path() < rhs.path(), false otherwise.
4) true if path() <= rhs.path(), false otherwise.
5) true if path() > rhs.path(), false otherwise.
6) true if path() >= rhs.path(), false otherwise.

### [edit] Exceptions

`noexcept` specification:
noexcept

### [edit] See also

pathoperator const path& | returns the path the entry refers to (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/experimental/fs/directory_entry/operator_cmp&oldid=91669"
Category:

- unconditionally noexcept

Hidden categories:

- Pages with unreviewed unconditional noexcept template
- Pages with unreviewed noexcept template