是用于工厂类的,部分上下文是这样的:
typedef ActorComponent *(*ActorComponentCreator)(void);
typedef std::map<std::string, ActorComponentCreator> ActorComponent CreatorMap;
第一句我能看懂,但是第二句为什么后面还有个ActorComponent?这句的意思难道不是把那个map命名为CreatorMap么?
是用于工厂类的,部分上下文是这样的:
typedef ActorComponent *(*ActorComponentCreator)(void);
typedef std::map<std::string, ActorComponentCreator> ActorComponent CreatorMap;
第一句我能看懂,但是第二句为什么后面还有个ActorComponent?这句的意思难道不是把那个map命名为CreatorMap么?