std::chrono...::tai_time)(3)
π NAME π
NAME: std::chrono::operator<<(std::chrono::tai_time) - std::chrono::operator<<(std::chrono::tai_time)
Okay so bestie, this page lives in the C++ Standard Libary manual β yes, the header says std::chrono...::tai_time)(3), and weβre keeping that energy. This is the operator<< page for std::chrono::tai_time, and itβs giving very specific chrono stream-output vibes. π
β¨
β¨ 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::tai_time<Duration>& tp );
So whatβs the tea? It 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. No cap, thatβs the whole formatting moment. π¦
π Return value π
os β thatβs it, thatβs the return value. Iconic. π«Ά
π«Ά Defect reports π«Ά
The following behavior-changing defect reports were applied retroactively to previously published C++ standards. Yes, retroactively β the lore got patched. π§
- DR
P2372R3, applied toC++20: behavior as published was βthe given locale was used by defaultβ; correct behavior is βLis needed to use the given localeβ.
π See also π
std::formatter<std::chrono::tai_time>(C++20) β formatting support fortai_time(class template specialization)format(C++20) β stores formatted representation of the arguments in a new string (function template)
xoxo, your chrono bestie π β source http://cppreference.com, version/date 2024.06.10, footer title std::chrono...::tai_time)(3). periodt. π
π¦ 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