多线程 thread_local 类型 thread_local变量是C++ 11新引入的一种存储类型. thread_local关键字修饰的变量具有线程周期(thread duration), 这些变量(或者说对象)在线程开始的时候被生成(allocated), 在线程结束的时候被销毁(deallocated). 并且每 一个线程都拥有一个独立的变量实例(Each thread has its own instance of the object). thread_local 可以和stati…
再系统地学一遍c++,查缺补漏. wchar_t L'a' stored in wchar_t. size of types cout << numeric_limits<double>::max() << endl; 数据间的转化 unsigned ; signed ; cout << a*b << endl; 4294967295-1 is promoted to unsigned int, but the binary representa…
C++14标准是 ISO/IEC 14882:2014 Information technology -- Programming languages -- C++ 的简称[1] .在标准正式通过之前,原名C++1y. C++14标准的委员会草案N3690于2013年5月15日发表.[2] 2014年8月18日,经过C++标准委员投票,C++14标准获得一致通过.草案文档经过一定的文字润色和修正之后,将在年内提交给ISO作为正式的C++标准发布. 下面描述的特性是委员会草案N3690中所描述…