摘要:
https://www.certicom.com/content/certicom/en/41-an-example-of-an-elliptic-curve-group-over-f2m.html As a very small example, consider the field F24, d 阅读全文
摘要:
POD(Plain Old Data,普通旧数据)类型是从 C++11 开始引入的概念,Plain 代表一个对象是一个普通类型,Old 代表一个对象可以与 C 兼容。通俗地讲,一个类、结构、共用体对象或非构造类型对象能通过二进制拷贝(如 memcpy())后还能保持其数据不变正常使用的就是POD类型 阅读全文
摘要:
#include "1.h"#include "pthread.h"static pthread_mutex_t __guard_mutex;static pthread_once_t __once_control = PTHREAD_ONCE_INIT;static void makeRecusi 阅读全文
摘要:
https://blog.csdn.net/c1ata/article/details/104934368?utm_medium=distribute.pc_relevant.none-task-blog-OPENSEARCH-11.nonecase&depth_1-utm_source=distr 阅读全文
摘要:
// 64kB stack#define FIBER_STACK 1024*64#include "ucontext.h"#include"stdlib.h"#include "stdio.h"ucontext_t child, parent;// The child thread will exe 阅读全文
摘要:
const object - an object whose type is const-qualified, or a non-mutable subobject of a const object. Such object cannot be modified: attempt to do so 阅读全文
摘要:
template <typename T, typename ...A>int g(T (*f)(A......), A... args){ return f(args..., 9);}int fz(int a,char b, ...){ return a+b;}int main(int argc, 阅读全文
摘要:
#define assert_static(e) do{ enum{ assert_static__ = 1 / (e) }; } while(0)template<typename T, typename U>int bit_copy(T& a, U& b) { assert_static(siz 阅读全文
摘要:
int m=9;struct C{ int f() const{ return ++e; }private: mutable int e; static int d;};int C::d = 2;int main(int argc, char *argv[]){ int c = 4; std::co 阅读全文
摘要:
https://www.jianshu.com/p/8df45004bbcb #include <stdio.h>#include <pthread.h>#include <unistd.h>thread_local int a = 0;void* f(void *){ static int i=1 阅读全文