namespace std {
namespace chrono {
// operator==により、以下の演算子が使用可能になる (C++20)
template <class Rep1, class Period1, class Rep2, class Period2>
constexpr bool operator!=(const duration<Rep1, Period1>& lhs,
const duration<Rep2, Period2>& rhs); // (1) C++11
}}
概要
非等値の判定を行う
戻り値
!(lhs == rhs)
例
出力
バージョン
言語
- C++11
処理系
- GCC: 4.6.1 ✅
- Visual C++: 2012 ✅, 2013 ✅, 2015 ✅
参照
- N3469 Constexpr Library Additions: chrono, v3
- P1614R2 The Mothership has Landed
- C++20での三方比較演算子の追加と、関連する演算子の自動導出