1#include <boost/algorithm/string.hpp>
2// Or, for fewer header dependencies:
3//#include <boost/algorithm/string/predicate.hpp>
4
5std::string str1 = "hello, world!";
6std::string str2 = "HELLO, WORLD!";
7
8if (boost::iequals(str1, str2))
9{
10 // Strings are identical
11}
12