Added C-String support for 'is_palindrome'

Updated doc, example and tests.
This commit is contained in:
Alexander Zaitsev
2016-08-16 05:14:56 +03:00
parent 0f5136de65
commit 3c25ce1090
4 changed files with 103 additions and 25 deletions

View File

@ -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;
}