Guest User

Untitled

a guest
Sep 24th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <vector>
  2. #include <string>
  3. #include <algorithm>
  4.  
  5. class StringUtils
  6. {
  7. public:
  8. static bool customStringCompare( const std::string&, const std::string& ) { return true; }
  9.  
  10. };
  11.  
  12. void test()
  13. {
  14. std::vector<std::string> testList;
  15. std::sort( testList.begin(), testList.end(), StringUtils::customStringCompare );
  16. }
  17.  
  18. static bool customStringCompare( const char*, const char* ) { return true; }
  19.  
  20. void test2()
  21. {
  22. std::string s1, s2;
  23. StringUtils::customStringCompare( s1, s2 );
  24. }
Add Comment
Please, Sign In to add comment