Does keyword move in C ++?

I am writing a program and have a "move" function. But has this been emphasized in my code blocks? Moves a reserved word in C ++? If so, what is he doing?

I have it as void move( double t, double u) 
+5
source share
1 answer

This is not a keyword, but there is a publicly available standard library function called std::move ; whoever tuned the syntax highlighting of the IDE decided to highlight it.

To avoid confusion with people reading your code, it would be nice to call your function something else.

+4
source

All Articles