Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function is_palindrome

boost::algorithm::is_palindrome

Synopsis

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


bool is_palindrome(const char * str);

Description

[Note] 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.

Returns:

true if the entire sequence is palindrome


PrevUpHomeNext