is
void Show_list( const std::vector<int> &List);
equal to
void Show_list( std::vector<int>const &List);
or not?
is
void Show_list( const std::vector<int> &List);
equal to
void Show_list( std::vector<int>const &List);
or not?
i try this
void Show_list( std::vector<int>const & List);
and compile with no error
you mean its different from
void Show_list( std::vector<int> const & List);
?
With a few exceptions related to the preprocessor, white space in C++ is only significant for token separation. And ">const" is already two tokens, whether there's a space there or not, because symbols and letters never combine.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law