Loading

摘要: 前言 Python有一类非常特殊的class名为frame有时称之为stack frame 怎么理解?stack frame字面上看有stack的含义,和函数逐级调用相关。 探究 通过代码演示 imoprt inspect frame = inspect.currentframe() 此时frame 阅读全文
posted @ 2022-07-26 18:11 azureology 阅读(404) 评论(0) 推荐(0)
摘要: SEO parameter pack variadic template 背景 现代C++常产生函数入参数量不确定的需求,例如: std:vector<int> v_1{1, 2}; std:vector<int> v_2{1, 2, 3, 4}; 此时变长参数显得必要。 实现 实现变长参数需要构造 阅读全文
posted @ 2022-07-26 17:43 azureology 阅读(137) 评论(0) 推荐(0)