![]() |
RMVL
2.4.0-dev
Robotic Manipulation and Vision Library
|
函数 | |
| template<typename Tp> | |
| consteval std::size_t | rm::reflect::size (auto &&...args) |
| 获取指定类型的成员个数 | |
| template<typename Tp, typename Callable> | |
| void | rm::reflect::for_each (Tp &&val, Callable &&f) |
| 遍历聚合类的每一个数据成员 | |
| template<typename Tp> | |
| bool | rm::reflect::equal (const Tp &lhs, const Tp &rhs) |
| 判断两个聚合类数据是否相同 | |
|
inline |
#include <rmvl/core/util.hpp>
判断两个聚合类数据是否相同
| Tp | 聚合类类型 |
| [in] | lhs | 左操作数 |
| [in] | rhs | 右操作数 |
|
inline |
#include <rmvl/core/util.hpp>
遍历聚合类的每一个数据成员
| Tp | 聚合类类型 |
| Callable | 可调用对象类型 |
| [in] | val | 聚合类对象 |
| [in] | f | 可调用对象 |
|
consteval |