摘要:
指针 = 带类型的地址 右值指针不能进行++,--会导致编译错误!!! 各种阴间的声明 using arr = int (*) [10]; // 指向包含十个int的数组的指针,实际上是一个二级指针 int (*arr[10])(int,int); // 函数指针 引用 引用 = 非空的指针 特别是 阅读全文
posted @ 2021-07-11 17:44
XDU18清欢
阅读(100)
评论(0)
推荐(0)
摘要:
前言 性能分析软件 vtune 关于如何精确测量花费时间 + 最小二乘法python脚本 uint64_t current_cycles(){ uint32_t low, high; asm volatile("rdtsc" : "=a"(low), "=d"(high)); return stat 阅读全文
posted @ 2021-07-01 23:27
XDU18清欢
阅读(107)
评论(0)
推荐(0)
摘要:
值得记录一下,加深了我对模板推导的理解 首先std::conditional不是惰性求值的,在模板元编程里面有时候不能对不正确的参数求值 #include <bits/stdc++.h> using namespace std; using ll = long long int; template< 阅读全文
posted @ 2021-07-01 16:35
XDU18清欢
阅读(512)
评论(0)
推荐(0)