...世界上最受推崇和设计精良的 C++ 库项目之一。 — Herb Sutter 和 Andrei Alexandrescu,《C++ 编码规范
...世界上最受推崇和设计精良的 C++ 库项目之一。
boost::pfr::ne_fields
// In header: <boost/pfr/ops_fields.hpp> template<typename T, typename U> bool ne_fields(const T & lhs, const U & rhs);
执行逐字段的不等比较。
返回
L != R || tuple_size_v<T> != tuple_size_v<U>,其中 L 和 R 是对 lhs 的前 N 个字段调用 std::tie 的结果
L != R || tuple_size_v<T> != tuple_size_v<U>
L
R
lhs
N
std::tie