std::experi...em::is_other(3)
π std::experimental::filesystem::is_other π
okay bestie, welcome to std::experimental::filesystem::is_other β this one's from the C++ Standard Libary manual (yes, that's literally the manual name up top, one-B "Libary" and all, we are not editing the source, periodt). It's a filesystem TS situation, so keep that in mind.
πΈ NAME πΈ
std::experimental::filesystem::is_other β checks whether a thing is a file of other type. Like, the file exists, but it's not a regular file, not a directory, and not a symlink. That vibe.
β¨ Synopsis β¨
Defined in header <experimental/filesystem>
bool is_other( file_status s ); (1) (filesystem TS)
bool is_other( const path& p ); (2) (filesystem TS)
bool is_other( const path& p, error_code& ec ); (3) (filesystem TS)
Checks if the given file status or path corresponds to a file of type other type. That is, the file exists, but is neither regular file, nor directory nor a symlink.
1)β Equivalent toexists(s) && !is_regular_file(s) && !is_directory(s) && !is_symlink(s).2)β Equivalent tois_other(status(p)).3)β Equivalent tois_other(status(p, ec)). Returnsfalseand setsecto an appropriate error code if an error occurs. Otherwise,ecis cleared with a call toec.clear().
π Parameters π
sβ file status to checkpβ path to examineecβ error code to store the error status to
π¦ Return value π¦
true if the given path or file status corresponds to a other file, false otherwise. (Yes, "a other file" β we're keeping the source's exact phrasing, no cap.)
π₯ Exceptions π₯
1,3)β noexcept specification:noexcept2)β Throwsfilesystem_errorif an error occurs. The error is constructed withpas an argument. The error code is set to an appropriate error code for the error that caused the failure.
π See also π
This section is incomplete π (that is literally all it says, bestie).
π Categories π
- Noindexed pages
- unconditionally noexcept
- Todo without reason
π§ Hidden categories π§
- Pages with unreviewed unconditional noexcept template
- Pages with unreviewed noexcept template
cute sign-off: source/version is http://cppreference.com, date is 2024.06.10, and the page is std::experi...em::is_other(3). mwah π
π¦ 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