|  | Home | Libraries | People | FAQ | More | 
boost::algorithm::is_palindrome
// In header: <boost/algorithm/is_palindrome.hpp> template<typename BidirectionalIterator, typename Predicate> bool is_palindrome(BidirectionalIterator begin, BidirectionalIterator end, Predicate p);
| ![[Note]](../../../../../../doc/src/images/note.png) | Note | 
|---|---|
| This function will return true for empty sequences and for palindromes. For other sequences function will return false. Complexity: O(N). | 
| Parameters: | 
 | ||||||
| Returns: | true if the entire sequence is palindrome |