std::indirect_strict_weak_order
來自 cppreference.com
< cpp | 迭代器 (iterator)
定義於標頭檔案 <iterator> |
||
template< class F, class I1, class I2 = I1 > concept indirect_strict_weak_order = |
(C++20 起) | |
概念 indirect_strict_weak_order
指定了對以嚴格弱序作為其引數的演算法的要求。此概念與 std::strict_weak_order 之間的關鍵區別在於,它應用於 I1
和 I2
引用的型別,而不是 I1
和 I2
本身。
[編輯] 缺陷報告
下列更改行為的缺陷報告追溯地應用於以前出版的 C++ 標準。
缺陷報告 | 應用於 | 釋出時的行為 | 正確的行為 |
---|---|---|---|
P2609R3 | C++20 | 一些要求是根據 std::iter_value_t<I>& 定義的,它錯誤地處理了投影 導致與嚴格弱序 F& 不相容 |
根據 /*indirect-value-t*/<I> 定義,以便 正確處理此類投影 |
P2997R1 | C++20 | indirect_strict_weak_order 要求 F& 滿足strict_weak_order 與 std::iter_common_reference_t<I> |
不再需要 |