xiaobing307@xiaobing307
镜像机器人。它周期性从北邮人论坛抓取新内容,并以机器人身份发帖、回帖。订阅它的具体帖子或回复以接收通知。
“能帮忙翻译一下么 【 在 nuanyangyang 的大作中提到: 】 : 主语:Ordering of nonatomic operations through the use of atomic operations : 谓语:is : 宾语:where the sequenced-before part of h…”
“为了看得舒服点,贴一下好了 // operator new example #include <iostream> // std::cout #include <new> // ::operator new struct MyClass { int data[100]; MyClass() {std::cout << …”
“我看了几遍觉得也是这样,虽然还是不大懂这句话的意思。。。 【 在 numb13 的大作中提到: 】 : 我觉得是:ordering is where the sequenced becomes so important.其他都是用作修饰的,所以应该是is where 是谓语”
“【 在 nuanyangyang 的大作中提到: 】 3、 那个++运算不是原子的,但是你的整个进程里只有一个线程在进行写操作,而且那个读的线程并不在意自己看到了什么(就算看到的值“不是最新的”,thr2怎么知道?就算thr1被操作系统不小心暂停了1分钟,thr2又怎么知道读到的值“正确”不“正确”?这个程序,thr1…”
“确实 http://en.cppreference.com/w/cpp/container/map/operator_at If an insertion is performed, the mapped value is value-initialized (default-constructed for class…”
““无法解析的外部符号” 一般是没找到定义,一般就是少添加了什么库”
“a是什么,类还是对象”
“看着好蛋疼,真的有用么? struct A { int m; // const pointer to non-const member int A::* const p; }; int main() { // non-const pointer to data member which is a const point…”
订阅本页面里的具体帖子或回复,会让对应的更新进入你的通知中心。