would you write this auto x = *it;// modify itif(error) *it = x;
instead of this?auto x = *it;// modify xif(ok) *it = x;
#cpp
like you think you are making a backup or something? who would do that? cmon...
in general would you make a copy and hold on to it unless you want to modify it? why?
tell me you'll never do that...
ok in your closet maybe, but not in generic code cmon, not in a libraryyyyy ToT
QOTO: Question Others to Teach Ourselves An inclusive, Academic Freedom, instance All cultures welcome. Hate speech and harassment strictly forbidden.