std::experi...status_known(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’… std::experi...status_known(3) πŸ’…

Straight from the C++ Standard Libary, bestie β€” yes, that spelling is in the original, don't come for me πŸ’….


✨ NAME ✨

std::experimental::filesystem::status_known β€” that's the whole name, no cap. It's literally the same as the title, so this page is being extra.


πŸ¦‹ Synopsis πŸ¦‹

Defined in header <experimental/filesystem>
bool status_known( file_status s );         (1) (filesystem TS)

It checks if the given file status is known β€” equivalent to s.type() != file_type::none.


🌸 Parameters 🌸

  • s β€” file status to check.

πŸ’– Return value πŸ’–

true if the given file status is an unknown file status. That's the exact return-value line, and yes, it says unknown β€” keeping it 100% as written, no editing.


😭 Exceptions 😭

noexcept specification: noexcept.

So it's an unconditionally noexcept situation, and the categories said so too.


πŸ‘€ Notes πŸ‘€

Despite the name, the function checks for the file status of file_type::none (meaning an error occurred), not file_type::unknown (meaning file exists, but its type cannot be determined). Like, the name is a little misleading and the page is calling it out. Periodt.


🫢 See also 🫢

The original formatting is a whole mood, so here's every piece, bestie:

  • status β€” determines file attributes
  • symlink_status β€” determines file attributes, checking the symlink target
  • (function) β€” the floating label from the page
  • cached status of the file designated by this directory entry
  • status β€” cached symlink_status of the file designated by this directory entry
  • symlink_status β€” (public member function of std::experimental::filesystem::directory_entry)

🏷️ Categories: 🏷️

  • Noindexed pages
  • unconditionally noexcept

πŸ™ˆ Hidden categories: πŸ™ˆ

  • Pages with unreviewed unconditional noexcept template
  • Pages with unreviewed noexcept template

okay that's the whole page! source/version: http://cppreference.com, 2024.06.10; date: 2024.06.10; page: std::experi...status_known(3). Bye bestie, stay slaying πŸ’…βœ¨

πŸ“¦ where this page comes from