Confirmed users
1,345
edits
Nnethercote (talk | contribs) |
Nnethercote (talk | contribs) |
||
| Line 272: | Line 272: | ||
... | ... | ||
} | } | ||
* Member variable names, private or public, are '' | * Member variable names, private or public, are sometimes decorated with a trailing '_'. | ||
class Fail | class Fail | ||
{ | { | ||
size_t | size_t capacity; // common | ||
T * | T *begin_; // also common, being used more as time goes on | ||
} | } | ||
Sometimes a canonical argument name may conflict with a member name. In this case, one can disambiguate with "this->", although such explicit qualification should only be added when necessary: | Sometimes a canonical argument name may conflict with a member name. In this case, one can disambiguate with "this->", although such explicit qualification should only be added when necessary: | ||