std::filesy...r==,!=,,>=,(3)
okay so welcome to the std::filesy...r==,!=,,>=,(3) page from the C++ Standard Libary manual β spelling exactly as the manual has it, bestie, we donβt edit history π
. This is the comparison-operator page for std::filesystem::directory_entry, and itβs giving operator overload realness β¨.
β¨ NAME β¨
the official NAME line is exactly this, double comma and all:
std::filesystem::directory_entry::operator==,!=,,>=, -
std::filesystem::directory_entry::operator==,!=,,>=,
πΈ Synopsis πΈ
hereβs the full synopsis, character-for-character, annotations and all:
bool operator==( const directory_entry& rhs ) const noexcept;
(1) (since C++17)
bool operator!=( const directory_entry& rhs ) const noexcept;
(2) (since C++17)
(until
C++20)
bool operator<( const directory_entry& rhs ) const noexcept;
(3) (since C++17)
(until
C++20)
bool operator<=( const directory_entry& rhs ) const noexcept;
(4) (since C++17)
(until
C++20)
bool operator>( const directory_entry& rhs ) const noexcept;
(5) (since C++17)
(until
C++20)
bool operator>=( const directory_entry& rhs ) const noexcept;
(6) (since C++17)
(until
C++20)
std::strong_ordering operator<=>( const directory_entry& rhs )
(7) (since C++20)
const noexcept;
the lore: this compares the path with the directory entry rhs. Quick synthesis note: the <, <=, >, >=, and != operators are synthesized from operator<=> (since C++20) and operator== respectively β main character energy for operator<=> and operator==, honestly.
π Parameters π
rhsβdirectory_entryto compare
π Return value π
trueifpath() == rhs.path(),falseotherwise.trueifpath() != rhs.path(),falseotherwise.trueifpath() < rhs.path(),falseotherwise.trueifpath() <= rhs.path(),falseotherwise.trueifpath() > rhs.path(),falseotherwise.trueifpath() >= rhs.path(),falseotherwise.- The result of
path() <=> rhs.path().
π See also π
pathβ returns the path the entry refers tooperator const path&(public member function)
source/version: http://cppreference.com Β· date: 2024.06.10 Β· page title: std::filesy...r==,!=,,>=,(3). okay bye bestie, go compare those directory entries and stay iconic πβ¨π«Ά
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms