SHARE
TWEET

Untitled

a guest Aug 12th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bool is_palindrome(const std::string& src)
  2. {
  3.     auto cpy = src;
  4.     std::reverse(cpy.begin(), cpy.end());
  5.     return cpy == src;
  6. }
RAW Paste Data
Top