• Class / Function / Type

      std::
    • Header file

      <>
    • Other / All

    最終更新日時(UTC):
    が更新

    履歴 編集

    function
    <chrono>

    std::chrono::operator<<

    namespace std::chrono {
      template <class charT, class traits>
      std::basic_ostream<charT, traits>&
        operator<<(std::basic_ostream<charT, traits>& os, const weekday_indexed& wdi); // (1) C++20
    }
    

    概要

    weekday_indexedオブジェクトを出力ストリームに出力する。

    戻り値

    便宜上のリテラルキャストSTATICALLY-WIDENを導入する。STATICALLY-WIDEN<charT>("...")は、charTcharである場合は"..."charTwchar_tである場合はL"..."を意味する。

    #include <iostream>
    #include <chrono>
    
    namespace chrono = std::chrono;
    
    int main()
    {
      std::cout << chrono::Sunday[1] << std::endl;
    }
    

    出力

    Sun[1]
    

    バージョン

    言語

    • C++20

    処理系

    関連項目

    参照