std::chrono...::file_time)(3)
πΈ NAME πΈ
okay so this page is std::chrono...::file_time)(3), from the C++ Standard Libary manual (yes, βLibaryβ β thatβs literally the manual name, not me π), and itβs all about std::chrono::operator<<(std::chrono::file_time). NAME says std::chrono::operator<<(std::chrono::file_time) β and then says std::chrono::operator<<(std::chrono::file_time) again. Self-referential queen behavior, honestly π.
β¨ Synopsis β¨
Defined in header <chrono>:
template< class CharT, class Traits, class Duration >
std::basic_ostream<CharT, Traits>& (since C++20)
operator<<( std::basic_ostream<CharT, Traits>& os,
const std::chrono::file_time<Duration>& tp );
So this operator outputs tp into the stream os, as if by os << std::format(os.getloc(), STATICALLY-WIDEN("{:L%F %T}"), tp), where STATICALLY_WIDEN<CharT>("{:L%F %T}") is "{:L%F %T}" if CharT is char, and L"{:L%F %T}" if CharT is wchar_t. Literally the whole vibe, bestie π«Ά.
π Return value π
os. Thatβs the return value. Thatβs it. Slay β¨.
π₯ Defect reports π₯
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
P2372R3β applied to C++20. Behavior as published: the given locale was used by default. Correct behavior:Lis needed to use the given locale. π
π See also π
std::formatter<std::chrono::file_time>β formatting support forfile_time(C++20) (class template specialization) πformatβ stores formatted representation of the arguments in a new string (C++20) (function template) π
source: http://cppreference.com Β· version/date: 2024.06.10 Β· page: std::chrono...::file_time)(3) β mwah, bestie π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms