Example of using collation functions
#include <iostream>
#include <set>
#include <string>
#include <boost/locale.hpp>
int main()
{
std::locale::global(gen(""));
std::set<std::string, std::locale> all_strings;
while(!std::cin.eof()) {
std::string tmp;
std::getline(std::cin, tmp);
all_strings.insert(tmp);
}
for(const std::string& str : all_strings)
std::cout << str << std::endl;
}
the major class used for locale generation
Definition: generator.hpp:101
This is the main namespace that encloses all localization classes.
Definition: boundary_point.hpp:13