Namespaces
Variants

std::chrono:: operator<< (std::chrono::month_weekday)

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

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

const std:: chrono :: month_weekday & mwd ) ;
(C++20以降)

mwd のテキスト表現を os に出力します。あたかも以下のように

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

STATICALLY_WIDEN < CharT > ( "{:L}/{:L}" ) は、 CharT char の場合 "{:L}/{:L}" であり、 CharT wchar_t の場合 L "{:L}/{:L}" である。

目次

戻り値

os

不具合報告

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

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

関連項目

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