operator==(std::filesystem::file_status)
From cppreference.com
< cpp | filesystem | file status
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
std::filesystem::file_status
Member functions
Non-member functions
operator==
(C++20)
friend bool operator==( const file_status& lhs, const file_status& rhs ) noexcept;
(since C++20)
Checks if two file_status
values 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.
The !=
operator is synthesized from operator==
.
[edit] Parameters
lhs, rhs
-
file_status
values to compare
[edit] Return value
lhs.type() == rhs.type() && lhs.permissions() == rhs.permissions()