forked from boostorg/algorithm
Update is_palindrome.hpp
This commit is contained in:
@ -113,7 +113,7 @@ bool is_palindrome(const R& range, Predicate p)
|
|||||||
/// \note This function will return true for empty sequences and for palindromes.
|
/// \note This function will return true for empty sequences and for palindromes.
|
||||||
/// For other sequences function will return false.
|
/// For other sequences function will return false.
|
||||||
/// Complexity: O(N).
|
/// Complexity: O(N).
|
||||||
bool is_palindrome(const char* str)
|
inline bool is_palindrome(const char* str)
|
||||||
{
|
{
|
||||||
if(!str)
|
if(!str)
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user