C++ style guide: Difference between revisions

Jump to navigation Jump to search
(→‎references: Add examples)
m (Show more code of reference use)
Line 188: Line 188:
{
{
   // foo changes content of `a_ref`
   // foo changes content of `a_ref`
  a_ref = a_ref + 1;
}
}


Line 200: Line 201:
{
{
   // foo changes content of `a_ptr`
   // foo changes content of `a_ptr`
  *a_ptr = *aptr + 1;
}
}