Merge pull request #108 from denzor200/denzor200-patch-1

Add forgotten `inline` for `is_palindrome`
This commit is contained in:
Marshall Clow
2022-10-12 07:39:41 -07:00
committed by GitHub

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;