#include <iostream>
#include <iomanip>
using namespace std;
class mah_class
{
public:
template <class T>
void operator<<(const T & t )
{
t( *this );
}
void operator<<(std::_Setw set)
{
std::cout << set._M_n;
}
};
void func( mah_class & c )
{
//do something useful with c
std::cout << "test";
}
int main() {
mah_class c;
c<<setw(666);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW9tYW5pcD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmNsYXNzIG1haF9jbGFzcwp7CnB1YmxpYzoKCXRlbXBsYXRlIDxjbGFzcyBUPgoJdm9pZCBvcGVyYXRvcjw8KGNvbnN0IFQgJiB0ICkKCXsKCQl0KCAqdGhpcyApOwoJfQoJCgl2b2lkIG9wZXJhdG9yPDwoc3RkOjpfU2V0dyBzZXQpCgl7CgkJc3RkOjpjb3V0IDw8IHNldC5fTV9uOwoJfQp9OwoKdm9pZCBmdW5jKCBtYWhfY2xhc3MgJiBjICkKewoJLy9kbyBzb21ldGhpbmcgdXNlZnVsIHdpdGggYwoJc3RkOjpjb3V0IDw8ICJ0ZXN0IjsKfQoKaW50IG1haW4oKSB7CgltYWhfY2xhc3MgYzsKCWM8PHNldHcoNjY2KTsKCXJldHVybiAwOwp9