std::filesy...:file_status(3)

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

✨ NAME ✨

okay bestie, welcome to the std::filesy...:file_status(3) page πŸ’… β€” and yes, the manual name near the top is C++ Standard Libary (that spelling is literally in the header, no cap). This is all about std::filesystem::file_status::file_status, the constructors for a file_status object, and it’s giving very C++17 main-character energy πŸ‘‘.

πŸŒ€ Synopsis πŸŒ€

here’s the synopsis, exactly as written, because we do not play with signatures:

          file_status() noexcept :
       (1) (since C++17)
          file_status(std::filesystem::file_type::none) {}
          file_status( const file_status& ) noexcept = default;
       (2) (since C++17)
          file_status( file_status&& ) noexcept = default;
       (3) (since C++17)
          explicit file_status(

              std::filesystem::file_type type,
       (4) (since C++17)

              std::filesystem::perms permissions =
          std::filesystem::perms::unknown ) noexcept;

Constructs a new file_status object. periodt πŸ’–

  1. (1) since C++17 β€” default constructor that calls (4) with std::filesystem::file_type::none.
  2. (2), (3) since C++17 β€” copy and move constructors are defaulted.
  3. (4) since C++17 β€” explicit constructor; initializes the file status object with type as type and permissions as permissions.

🌸 Parameters 🌸

  • type β€” type of the file status
  • permissions β€” permissions of the file status

πŸ“ Example πŸ“

bestie, this section is incomplete 😭

Reason: no example

🏷️ Category 🏷️

  • Todo no example

okay that’s the whole page, bestie 🫢 source/version and date: http://cppreference.com, 2024.06.10 Β· page title: std::filesy...:file_status(3) πŸ’–βœ¨

πŸ“¦ where this page comes from