随笔分类 - C++
摘要:(转自) http://moodycamel.com/blog/2013/a-fast-lock-free-queue-for-c++ Sharing data between threads in annoying. Really annoying. If you do it wrong, the
阅读全文
摘要:What is the difference between ostream and ostringstream? Put succinctly: ostringstream provides a streambuf, ostream requires the user to provide one
阅读全文
摘要:priority_queue<Point, vector<Point>, pqCmp> struct pqCmp { bool operator() (const Point& a, const Point& b) const { return distance(a,center) < distan
阅读全文
摘要:The difference here is that will place "Hello world" in the read-only parts of the memory, and making s a pointer to that makes any writing operation
阅读全文

浙公网安备 33010602011771号