For those of you who name you member variables with no special notation like m_foo or foo_, how do you name parameters to your ctors and setters?>
m_foo
foo_
For classes:
Obj(int foo) : _foo(foo) {};
For structs:
obj_t(int foo_) : foo(foo_) {};
Setter:
Obj.setFoo(int foo) { _foo = foo; }
I'm with litb on the use of lhs and rhs for operator calls.
lhs
rhs
I use camelCase for class member functions, and names_with_underscores for struct fields and methods.
camelCase
names_with_underscores