std::experi...em::is_empty(3)

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

πŸ’… NAME πŸ’…

Manual name: std::experi...em::is_empty(3) β€” from the C++ Standard Libary manual, bestie. The NAME is std::experimental::filesystem::is_empty, and then it says std::experimental::filesystem::is_empty again. It’s giving β€œsay it twice so they remember” energy, honestly. πŸ’–


🌸 Synopsis 🌸

Defined in header <experimental/filesystem>.

bool is_empty( const path& p );                 (1) (filesystem TS)
bool is_empty( const path& p, error_code& ec ); (2) (filesystem TS)

Checks whether the given path refers to an empty file or directory. πŸŽ€

The second version returns false and sets ec to an appropriate error code if an error occurs. Otherwise, ec is cleared with a call to ec.clear(). No cap.


πŸ¦‹ Parameters πŸ¦‹

  • p β€” path to examine
  • ec β€” error code to modify in case of error

✨ Return value ✨

true if p refers to an empty file or directory, false otherwise.


πŸ”₯ Exceptions πŸ”₯

  1. filesystem_error if an error occurs. The exception object is constructed with p as an argument. The error code is set to an appropriate error code for the error that caused the failure. 😭
  2. noexcept specification: noexcept

πŸ‘€ See also πŸ‘€

This section is incomplete.


🏷️ Categories 🏷️

  • Noindexed pages
  • unconditionally noexcept
  • Todo without reason

πŸ™ˆ Hidden categories πŸ™ˆ

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

Source is http://cppreference.com, version/date is 2024.06.10, and the footer is std::experi...em::is_empty(3) β€” mwah, bye bestie! πŸ’œπŸ«Ά

πŸ“¦ where this page comes from