• Class / Function / Type

      std::
    • Header file

      <>
    • Other / All

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

    履歴 編集

    class template
    <utility>

    std::basic_common_reference

    namespace std {
      template<class T1, class T2, class U1, class U2,
        template<class> class TQual, template<class> class UQual>
      struct basic_common_reference<pair<T1, T2>, pair<U1, U2>, TQual, UQual> {
        using type = pair<common_reference_t<TQual<T1>, UQual<U1>>,
                          common_reference_t<TQual<T2>, UQual<U2>>>;
      };
    }
    

    概要

    pairについて、common_referenceで共通の参照型を取得できるようにアダプトするbasic_common_referenceの特殊化である。

    ユーザーが直接この特殊化を利用する必要はない。common_referenceを使用すること。

    効果

    pair<common_reference_t<TQual<T1>, UQual<U1>>, common_reference_t<TQual<T2>, UQual<U2>>>によって得られた型をメンバ型typeとして定義する。

    要件

    バージョン

    言語

    • C++23

    処理系

    関連項目

    参照