fork download
  1. #include <boost/algorithm/string/predicate.hpp>
  2. #include <string>
  3. #include <iostream>
  4.  
  5. int main()
  6. {
  7. char ar[10] = "hello";
  8. std::string str = "hELlO";
  9.  
  10. std::cout << std::boolalpha << boost::iequals(str, ar) << '\n';
  11. }
Success #stdin #stdout 0.01s 2860KB
stdin
Standard input is empty
stdout
true