std::filesystem::file_status(3cxx)

πŸ’… NAME: std::filesystem::file_status β€” libstdc++ manual, 3cxx edition πŸ’…

std::filesystem::file_status is literally Information about a file's type and permissions. That’s the whole assignment, bestie ✨


✨ SYNOPSIS ✨

#include <filesystem>

πŸŽ€ Public Member Functions πŸŽ€

  • file_status (const file_status &) noexcept=default β€” copy constructor form, defaulted, and noexcept, cute.
  • file_status (file_status &&) noexcept=default β€” move constructor form, defaulted, and noexcept.
  • file_status (file_type __ft, perms __prms=perms::unknown) noexcept β€” constructor from a file_type plus perms, with __prms defaulting to perms::unknown, and yes it’s noexcept.
  • file_status & operator= (const file_status &) noexcept=default β€” copy assignment, defaulted, noexcept.
  • file_status & operator= (file_status &&) noexcept=default β€” move assignment, defaulted, noexcept.
  • perms permissions () const noexcept β€” getter for the permissions.
  • void permissions (perms __prms) noexcept β€” setter that takes perms __prms.
  • file_type type () const noexcept β€” getter for the file type.
  • void type (file_type __ft) noexcept β€” setter that takes file_type __ft.

🫢 Friends 🫢

  • bool operator== (const file_status &, const file_status &) noexcept=default β€” equality comparing two file_status values, noexcept=default, iconic.

🌈 Detailed Description 🌈

Information about a file's type and permissions.

That’s it. That’s the vibe. Type + permissions, no cap πŸ’–

⭐ Since ⭐

C++17 β€” periodt.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code.


kisses from the libstdc++ corner 🫢 β€” source/version: libstdc++; page tag: std::filesystem::file_status(3cxx); the original footer didn’t print a date, so I’m not making one up, bestie πŸ’–

πŸ“¦ where this page comes from