std::files...ile_status(3)
π std::filesystem::file_status β the vibe check of a file
okay bestie, imagine a little glow-up card that tells you what kind of thing a file is and who's allowed to do what with it. that's literally std::filesystem::file_status, from the std::filesystem crew. it's your file's whole personality in one struct: its type AND its permissions. π
β¨ NAME β¨
std::filesystem::file_status β Information about a file's type and permissions.
πΈ SYNOPSIS πΈ
#include <filesystem>
π¦ Public Member Functions
file_status (const file_status &) noexcept=default
file_status (file_status &&) noexcept=default
file_status (file_type __ft, perms __prms=perms::unknown) noexcept
file_status & operator= (const file_status &) noexcept=default
file_status & operator= (file_status &&) noexcept=default
perms permissions () const noexcept
void permissions (perms __prms) noexcept
file_type type () const noexcept
void type (file_type __ft) noexcept
π Friends
bool operator== (const file_status &, const file_status &) noexcept=default
β Detailed Description β
Information about a file's type and permissions.
that's the whole thing, and honestly? it ate. it's small, it's noexcept everywhere, it copies and moves like a dream. a file's type, a file's permissions, packaged together, no drama. π
π Since
C++17
heads up bestie: this is C++17-and-later territory. if you're on an older standard, this one's not invited to the party. π
π«Ά Author π«Ά
Generated automatically by Doxygen for libstdc++ from the source code.
and that's the page, fr fr. this iconic little slice of documentation lives in libstdc++ β shoutout to Doxygen for auto-generating it from the source code, no cap. π β¨
π¦ where this page comes from
- arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
- fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- fedora 44: libstdc++-docs 16.2.1-2.fc44
- fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms