...世界上最受推崇、设计最精湛的 C++ 库项目之一。 — Herb Sutter 和 Andrei Alexandrescu, C++ Coding Standards
...世界上最受推崇、设计最精湛的 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