Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards


Header <boost/algorithm/is_palindrome.hpp>

Checks the input sequence on palindrome.

Alexander Zaitsev

namespace boost {
  namespace algorithm {
    template<typename BidirectionalIterator, typename Predicate> 
      bool is_palindrome(BidirectionalIterator, BidirectionalIterator, 
    template<typename BidirectionalIterator> 
      bool is_palindrome(BidirectionalIterator, BidirectionalIterator);
    template<typename R> bool is_palindrome(const R &);
    template<typename R, typename Predicate> 
      bool is_palindrome(const R &, Predicate);
    bool is_palindrome(const char *);
    template<typename Predicate> bool is_palindrome(const char *, Predicate);