摘要: 下面是示例 #include <iostream> #include <string> #include <fstream> #include <regex> int main() { std::ifstream file("d:/xudp.html"); std::istreambuf_itera 阅读全文
posted @ 2022-01-01 13:44 浪迹天涯的程序员 阅读(52) 评论(0) 推荐(0)
摘要: 以前没有用过,需要 一个简单的demo打开就能用 下面的代码 <!DOCTYPE html><html><head><meta charset="UTF-8" ><title>demo</title><script src="tinymce.min.js" ></script><script>fun 阅读全文
posted @ 2021-05-25 11:08 浪迹天涯的程序员 阅读(189) 评论(0) 推荐(0)
摘要: 引用折叠的前提是出现了引用的引用,有点绕。我们不能直接定义引用的引用,但是可以间接定义。 通过类型别名或者通过模板参数间接定义,多重引用最终折叠成左值引用或者右值引用,多余的忽略 typedef int&& new_type; new_type& ok; 这个时候就形成了类型折叠 类似于int&&& 阅读全文
posted @ 2021-05-23 07:19 浪迹天涯的程序员 阅读(1422) 评论(0) 推荐(0)