Update is_palindrome.hpp

This commit is contained in:
Denis Mikhailov
2022-10-12 19:53:19 +06:00
committed by GitHub
parent 6a5ca4e89c
commit 6d58f2b9d1

View File

@ -113,7 +113,7 @@ bool is_palindrome(const R& range, Predicate p)
/// \note This function will return true for empty sequences and for palindromes.
/// For other sequences function will return false.
/// Complexity: O(N).
bool is_palindrome(const char* str)
inline bool is_palindrome(const char* str)
{
if(!str)
return true;