#include <iostream>
#include <string>
int main()
{
{
std::string (&plus)(std::string const&, std::string const&) = &std::operator+;
std::string a ("Hello, "), b("World!");
std::cout << plus(a, b) << std::endl;
}
{
int (&plus)(int const&, int const&) = &operator+;
int a (3), b(4);
std::cout << plus(a, b) << std::endl;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKaW50IG1haW4oKQp7CiAgICB7CiAgICAgICAgc3RkOjpzdHJpbmcgKCZwbHVzKShzdGQ6OnN0cmluZyBjb25zdCYsIHN0ZDo6c3RyaW5nIGNvbnN0JikgPSAmc3RkOjpvcGVyYXRvcis7CiAgICAgICAgc3RkOjpzdHJpbmcgYSAoIkhlbGxvLCAiKSwgYigiV29ybGQhIik7CiAgICAgICAgc3RkOjpjb3V0IDw8IHBsdXMoYSwgYikgPDwgc3RkOjplbmRsOwogICAgfQogICAgCiAgICB7CiAgICAgICAgaW50ICgmcGx1cykoaW50IGNvbnN0JiwgaW50IGNvbnN0JikgPSAmb3BlcmF0b3IrOwogICAgICAgIGludCBhICgzKSwgYig0KTsKICAgICAgICBzdGQ6OmNvdXQgPDwgcGx1cyhhLCBiKSA8PCBzdGQ6OmVuZGw7CiAgICB9IAp9