Hungarian notation for std::vector - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Hungarian notation for std::vector

zeolitezeolite Posts: 78Member
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?

Comments

  • homerocdahomerocda Posts: 87Member
    : 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]

  • szaboiszaboi Posts: 1Member
    Hungarian notation is bullshit, duse it pls. :D Im hungarian lol

    Best regards,

Sign In or Register to comment.