<filesystem>
Operatoren
Die Operatoren führen einen lexikalischen Vergleich von zwei Pfaden als Zeichenfolgen aus. Verwenden Sie die equivalent
Funktion, um zu bestimmen, ob zwei Pfade (z. B. ein relativer Pfad und ein absoluter Pfad) auf dieselbe Datei oder dasselbe Verzeichnis auf dem Datenträger verweisen.
Weitere Informationen finden Sie unter Dateisystemnavigation.
operator==
bool operator==(const path& left, const path& right) noexcept;
Die Funktion gibt „left.native() == right.native()“ zurück.
operator!=
bool operator!=(const path& left, const path& right) noexcept;
Die Funktion gibt „!(left == right)“ zurück.
operator<
bool operator<(const path& left, const path& right) noexcept;
Die Funktion gibt left.native() right.native() < zurück.
operator<=
bool operator<=(const path& left, const path& right) noexcept;
Die Funktion gibt „!(right < left)“ zurück.
operator>
bool operator>(const path& left, const path& right) noexcept;
Die Funktion gibt „right < left“ zurück.
operator>=
bool operator>=(const path& left, const path& right) noexcept;
Die Funktion gibt ! (links < rechts).
operator/
path operator/(const path& left, const path& right);
Die Funktion führt Folgendes aus:
basic_string<Elem, Traits> str;
path ans = left;
return (ans /= right);
operator<<
template <class Elem, class Traits>
basic_ostream<Elem, Traits>& operator<<(basic_ostream<Elem, Traits>& os, const path& pval);
Die Funktion gibt os << pval.string<Elem, Traits>() zurück.
operator>>
template <class Elem, class Traits>
basic_istream<Elem, Traits>& operator<<(basic_istream<Elem, Traits>& is, const path& pval);
Die Funktion führt Folgendes aus:
basic_string<Elem, Traits> str;
is>> str;
pval = str;
return (is);
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für