How to write the name of C++
This article introduces the relevant knowledge of "how to write the name of C++". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
ES.7: general and local names should be short, while special and non-local names should be long.
Reason (reason)
Readability. Avoid conflicts between extraneous non-local names.
Example (sample)
Conventionally, short local variables can increase readability.
Template / / good
Void print (ostream& os, const vector& v)
{
For (gsl::index I = 0; I < v.size (); + + I)
Os