I was just wondering what was the standard way of denoting that a variable is of type std::vector. I currently use the prefix "lst" (as in "list"), like so:[CODE]#include using namesapce std;
: I was just wondering what was the standard way of denoting that a variable is of type std::vector. I currently use the prefix "lst" (as in "list"), like so:[CODE]#include : using namesapce std; : : vector lstMyInts;[/CODE] : Any thoughts guys? :
Well... I don't like hungarian notation (it's useful on weak typed langages, though) but I wouldn't use a "lst" prefix. A vector is not a list (there is already a list type in the STL), a vector is a vector. I would use a "vec" prefix.
Homero C. de Almeida
[italic]There's no dishonour in failure. For we aren't allowed to know wheter we'll achieve success or not. There is only one final shame, the cowardice of not trying.[/italic]
Comments
: using namesapce std;
:
: vector lstMyInts;[/CODE]
: Any thoughts guys?
:
Well... I don't like hungarian notation (it's useful on weak typed langages, though) but I wouldn't use a "lst" prefix. A vector is not a list (there is already a list type in the STL), a vector is a vector.
I would use a "vec" prefix.
Homero C. de Almeida
[italic]There's no dishonour in failure. For we aren't allowed to know wheter we'll achieve success or not. There is only one final shame, the cowardice of not trying.[/italic]
Best regards,