forked from boostorg/algorithm
Update is_palindrome.hpp
This commit is contained in:
1 parent
6a5ca4e89c
commit
6d58f2b9d1
1 file changed
+1
-1
@@ -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