Imitation function

xiaoxiao2021-03-06  78

Class func {public: void Operator () (const char * str) {...}}; ... func func; func ("abc"); ... STL Many similar implementations are overloaded () symbols, which can realize similar functions.

转载请注明原文地址:https://www.9cbs.com/read-107645.html

New Post(0)