Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is move a keyword in c++?

Tags:

I'm writing a program and have a function named "move". But it's highlighted in my codeblocks? Is move a reserved word in c++? If so, what does it do?

I have it as void move( double t, double u)
like image 691
Alex Avatar asked Jul 03 '16 23:07

Alex


1 Answers

It's not a keyword, but there is a commonly-used standard library function called std::move; whoever set up your IDE's syntax highlighting decided to highlight it.

To avoid confusion with people reading your code, it'd be a good idea to call your function something else.

like image 54
M.M Avatar answered Sep 28 '22 02:09

M.M