One Motor
0.5.1
RoboMaster全平台一站式电机驱动库
载入中...
搜索中...
未找到
Arithmetic.hpp
浏览该文件的文档.
1
7
#ifndef ARITHMETIC_HPP
8
#define ARITHMETIC_HPP
9
10
#include <concepts>
11
12
namespace
OneMotor::Util
13
{
19
template
<
typename
T>
20
concept
Arithmetic
= std::integral<T> || std::floating_point<T>;
21
}
22
23
#endif
//ARITHMETIC_HPP
OneMotor::Util::Arithmetic
约束一个类型 T 必须是整数类型或浮点数类型。
定义
Arithmetic.hpp:20
include
OneMotor
Util
Arithmetic.hpp
制作者
1.13.2