Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个程序并有一个名为“move”的函数。但它在我的代码块中突出显示?在 C++ 中移动是保留字吗?如果是这样,它有什么作用?
I have it as void move( double t, double u)
它不是关键字,但有一个常用的标准库函数,称为std::move; 无论是谁设置了 IDE 的语法高亮,都决定高亮它。
std::move
为避免与阅读您的代码的人混淆,最好将您的函数称为其他名称。