#include <set>
#include <string>
struct Foo
{
std::string mBar;
bool operator<(const Foo& rhs) const
{
return mBar < rhs.mBar;
}
Foo(const std::string bar) : mBar(bar) {};
};
typedef std::set<Foo> Foos;
int main()
{
Foos foos;
foos.emplace(std::string("Hello"));
}
I2luY2x1ZGUgPHNldD4KI2luY2x1ZGUgPHN0cmluZz4KCnN0cnVjdCBGb28KewogICAgc3RkOjpzdHJpbmcgbUJhcjsKICAgIGJvb2wgb3BlcmF0b3I8KGNvbnN0IEZvbyYgcmhzKSBjb25zdAogICAgewogICAgICAgIHJldHVybiBtQmFyIDwgcmhzLm1CYXI7CiAgICB9CiAgICBGb28oY29uc3Qgc3RkOjpzdHJpbmcgYmFyKSA6IG1CYXIoYmFyKSB7fTsKfTsKCnR5cGVkZWYgc3RkOjpzZXQ8Rm9vPiBGb29zOwoKaW50IG1haW4oKQp7CiAgICBGb29zIGZvb3M7CiAgICBmb29zLmVtcGxhY2Uoc3RkOjpzdHJpbmcoIkhlbGxvIikpOwp9Cg==