| Home | Libraries | People | FAQ | More

## Function template is_palindrome

boost::algorithm::is_palindrome

## Synopsis

    // In header: <boost/algorithm/is_palindrome.hpp>

    template<typename Predicate> bool is_palindrome(const char * str, Predicate p);

## Description

| Note
This function will return true for empty sequences and for palindromes. For other sequences function will return false. Complexity: O(N).

Parameters: |
`str` | C-string to be tested.
`p` | A predicate used to compare the values.
Returns: | true if the entire sequence is palindrome