Namespaces
Variants

std::chrono:: operator<< (std::chrono::year_month_weekday_last)

From cppreference.net
定義於ヘッダ <chrono>
template < class CharT, class Traits >

std:: basic_ostream < CharT, Traits > &
operator << ( std:: basic_ostream < CharT, Traits > & os,

const std:: chrono :: year_month_weekday_last & ymwdl ) ;
(C++20以降)

ymwdl のテキスト表現を os に出力します。処理は以下のように行われます。

os << std:: format ( os. getloc ( ) , STATICALLY_WIDEN < CharT > ( "{}/{:L}/{:L}" ) ,
ymwdl. year ( ) , ymwdl. month ( ) , ymwdl. weekday_last ( ) ) ;

CharT char の場合 STATICALLY_WIDEN < CharT > ( "{}/{:L}/{:L}" ) "{}/{:L}/{:L}" となり、 CharT wchar_t の場合 L "..." となる。

戻り値

os

不具合報告

以下の動作変更の欠陥報告書は、以前に公開されたC++規格に対して遡及的に適用されました。

DR 適用対象 公開時の動作 正しい動作
P2372R3 C++20 デフォルトで指定されたロケールが使用されていた L を指定して初めて指定されたロケールが使用される

関連項目

(C++20)
引数の書式化された表現を新しい文字列に格納する
(関数テンプレート)
year_month_day の書式化サポート
(クラステンプレートの特殊化)