[Solved] How to understand this C++ palindrome code?
Taking a look at the string constructor: … (7) template <class InputIterator> string (InputIterator first, InputIterator last); You can see it is possible to create a string via iterators. The rbegin/rend iterators are InputIterators that points to the reverse positions that they refer: rend() –>”My string”<– rbegin() That said, when you pass the rbegin() and … Read more