std::chrono::operator<<(std::chrono::year_month_weekday)
提供: cppreference.com
<tbody>
</tbody>
template <class CharT, class Traits> std::basic_ostream<CharT, Traits>& operator<<(std::basic_ostream<CharT, Traits>& os, const std::chrono::year_month_weekday& ymwd); |
(C++20以上) | |
以下のように行われたかのように ymwd のテキスト表現を os を出力します。
os << std::format(os.getloc(), STATICALLY_WIDEN<CharT>("{}/{}/{}"), ymwd.year(), ymwd.month(), ymwdl.weekday_indexed());
ただし STATICALLY_WIDEN<CharT>("...") は CharT が char の場合は "..."、 wchar_t の場合は L"..." です。
戻り値
os。
関連項目
(C++20) |
引数の書式化された表現を新しい文字列に格納します (関数テンプレート) |
提供された書式に従って year_month_day を書式化する std::formatter の特殊化 (クラステンプレートの特殊化) |