Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何写以下内容:
typedef void (^T)(void); T f() { return ^{}; }
没有typedef?
void (^f())(void) { return ^{}; }
您最好保留 typedef,因为在这种形式下,返回类型不容易理解。