随笔分类 - C++
摘要:避免使用vector<bool>,尽量使用bitset或者deque<bool> 因为vector<bool>不是容器,底层是bool值按bit存储 STL list容器数据结构上看是带空头的双向循环链表 容器迭代器要注意迭代器失效问题,insert/erase后要及时更新迭代器 auto_ptr不
阅读全文
摘要:#include <iostream> extern "C" { #include "stdio.h" void print() { const char* s = "Hello asm\n"; int len = 10; printf("Hello C\n"); asm volatile( "mo
阅读全文