operator==(std::filesystem::file_status)
From cppreference.com
< cpp | filesystem | file status
friend bool operator==( const file_status& lhs, const file_status& rhs ) noexcept; |
(since C++20) | |
Checks if two file_status
objects are equal, i.e. types and permissions represented by them are same respectively.
This function is not visible to ordinary unqualified or qualified lookup, and can only be found by argument-dependent lookup when std::filesystem::file_status
is an associated class of the arguments.
Parameters
lhs, rhs | - | file_status objects to compare
|
Return value
lhs.type() == rhs.type() && lhs.permissions() == rhs.permissions()
See also
gets or sets the type of the file (public member function) | |
gets or sets the permissions of the file (public member function) |