Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <vector>
- #include <string>
- #include <algorithm>
- class StringUtils
- {
- public:
- static bool customStringCompare( const std::string&, const std::string& ) { return true; }
- };
- void test()
- {
- std::vector<std::string> testList;
- std::sort( testList.begin(), testList.end(), StringUtils::customStringCompare );
- }
- static bool customStringCompare( const char*, const char* ) { return true; }
- void test2()
- {
- std::string s1, s2;
- StringUtils::customStringCompare( s1, s2 );
- }
Add Comment
Please, Sign In to add comment