mirror of
https://github.com/boostorg/algorithm.git
synced 2025-07-29 12:07:18 +02:00
Added C-String support for 'is_palindrome'
Updated doc, example and tests.
This commit is contained in:
@ -89,6 +89,11 @@ int main ( int /*argc*/, char * /*argv*/ [] )
|
||||
std::cout << "This container is palindrome" << std::endl;
|
||||
else
|
||||
std::cout << "This container is not palindrome" << std::endl;
|
||||
|
||||
|
||||
//You can use C-strings
|
||||
if(ba::is_palindrome("aba"))
|
||||
std::cout << "This C-string is palindrome" << std::endl;
|
||||
else
|
||||
std::cout << "This C-string is not palindrome" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user