Files
cmake-examples/05-unit-testing/boost/Palindrome.cpp
2015-12-01 22:51:53 +00:00

12 lines
202 B
C++

#include "Palindrome.h"
bool Palindrome::isPalindrome(const std::string& toCheck)
{
if (toCheck == std::string(toCheck.rbegin(), toCheck.rend())) {
return true;
}
return false;
}