what is the difference between iter++->empty() and ++iter->empty()?
Assuming that iter is a vector.
- 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!