Function template is_palindrome
boost::algorithm::is_palindrome
Synopsis
template<typename BidirectionalIterator>
bool is_palindrome(BidirectionalIterator begin, BidirectionalIterator end);
Description
|
Note |
This function will return true for empty sequences and for palindromes. For other sequences function will return false. Complexity: O(N). |
Parameters: |
begin
|
The start of the input sequence |
end
|
One past the end of the input sequence |
|
Returns: |
true if the entire sequence is palindrome |