std::string str = "abcdefghijklmn";
std::string s = "def";
auto i = std::search( str.rbegin(), str.rend(), s.rbegin(), s.rend() );
i.base();