Assuming that iter is a vector<string>::iterator
.
- I have understood that
++iter->empty()
is illegal, ISO C++17 does not allow incrementing expression of type bool, indicating that++iter->empty()
equals++(iter->empty())
. - Based on (1), why
iter++->empty()
doesn't equal(iter->empty())++
or((*iter).empty())++
, but equals(*iter++).empty()
? thank you very much!
Aucun commentaire:
Enregistrer un commentaire