Function template is_palindrome
boost::algorithm::is_palindrome
Synopsis
template<typename R, typename Predicate>
bool is_palindrome(const R & range, 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: |
p
|
A predicate used to compare the values. |
range
|
The range to be tested. |
|
Returns: |
true if the entire sequence is palindrome |