相关代码 |
|
#include struct Fun { Fun() { std::cout } template< class T > void operator()( T t ) { } template< class T > Fun& operator,( T r ) { return *this; } }; template< class T > Fun foo( T t ) { return Fun(); } struct one { one() { std::cout } }; struct two { two() { std::cout } }; int main() { foo( one() )( two() ); Fun(),one(),two(),one(); }
相关资源 |
|