Aracılığıyla paylaş


<filesystem> işleçleri

İşleçler, dize olarak iki yolun sözcük temelli karşılaştırmasını gerçekleştirir. equivalent İki yolun (örneğin göreli yol ve mutlak yol) diskte aynı dosyaya veya dizine başvurup başvurmadığını belirlemek için işlevini kullanın.

Daha fazla bilgi için bkz . Dosya Sistemi Gezintisi (C++).

operator==

bool operator==(const path& left, const path& right) noexcept;

İşlev left.native() == right.native() döndürür.

operator!=

bool operator!=(const path& left, const path& right) noexcept;

İşlev! (sol == sağ).

operatör<

bool operator<(const path& left, const path& right) noexcept;

İşlev left.native() right.native() < döndürür.

operator<=

bool operator<=(const path& left, const path& right) noexcept;

İşlev! (sağ < sol).

operatör>

bool operator>(const path& left, const path& right) noexcept;

İşlev sağ < sola döner.

operator>=

bool operator>=(const path& left, const path& right) noexcept;

İşlev! (sol < sağ).

operatör/

path operator/(const path& left, const path& right);

İşlev yürütülür:

basic_string<Elem, Traits> str;
path ans = left;
return (ans /= right);

operatör<<

template <class Elem, class Traits>
basic_ostream<Elem, Traits>& operator<<(basic_ostream<Elem, Traits>& os, const path& pval);

İşlev os << pval.string<Elem, Traits>() döndürür.

operatör>>

template <class Elem, class Traits>
basic_istream<Elem, Traits>& operator<<(basic_istream<Elem, Traits>& is, const path& pval);

İşlev yürütülür:

basic_string<Elem, Traits> str;
is>> str;
pval = str;
return (is);