名稱空間
變體
操作

std::relation

來自 cppreference.com
定義於標頭檔案 <concepts>
template< class R, class T, class U >

concept relation =
    std::predicate<R, T, T> && std::predicate<R, U, U> &&

    std::predicate<R, T, U> && std::predicate<R, U, T>;
(1) (C++20 起)

概念 relation<R, T, U> 指定 R 定義了作用於表示式集合上的二元關係,該表示式集合的型別和值類別由 TU 編碼。

[編輯] 參考資料

  • C++23 標準 (ISO/IEC 14882:2024)
  • 18.7.5 概念 relation [concept.relation]
  • C++20 標準 (ISO/IEC 14882:2020)
  • 18.7.5 概念 relation [concept.relation]