// Include custom header files
#include "Pstring.h"

bool Pstring::isPalindrome() { // Function to check if object string is a palindrome

	string compare = *this; // Store object string as variable to be manipulated

	reverse(compare.begin(), compare.end()); // Reverse the contents of 'compare' (from algorithm library)

	if (*this == compare) { // If object string and reversed string are identical
		return true;
	} else { // If object string and reversed string are different
		return false;
	}

}
