摘要: 1. value metafunction #include <assert> template<int X> struct IntIdentity { static constexpr int my_value = X; }; int main() { static_assert(42 == In 阅读全文
posted @ 2020-12-29 21:04 cyssmile 阅读(131) 评论(0) 推荐(0) 编辑
摘要: typedef struct InterruptCB { int (*callback)(void*); void *opaque; } InterruptCB; class Parse{ public: static int InterruptCallBack(void* ctx) { Parse 阅读全文
posted @ 2020-12-29 16:59 cyssmile 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 1、dirs 显示当前目录栈中的所有记录 语法 (1)格式:dirs [-clpv] [+n] [-n] (2)选项 -c 删除目录栈中的所有记录 -l 以完整格式显示 -p 一个目录一行的方式显示 -v 每行一个目录来显示目录栈的内容,每个目录前加上的编号 +N 显示从左到右的第n个目录,数字从0 阅读全文
posted @ 2020-12-29 14:48 cyssmile 阅读(232) 评论(0) 推荐(0) 编辑