![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++ Basic
great-way
这个作者很懒,什么都没留下…
展开
-
C++ Operator Precedence
C++ Operator Precedence source :: a++ a-- a() a[] a. a-> ++a --a +a -a !a ~a *a &a sizeof new delete .* ->* a*b a/b a%b a+b a-b a >&g...原创 2018-10-28 02:49:03 · 178 阅读 · 0 评论 -
C++ Iterator Overloading
// The class you want to have an iterator // Need to implement begin() and end() interfaces class ListOfList { list<list<int> > s; MyIterator begin(); MyIterator end(); } // The cus...原创 2018-10-28 02:54:45 · 111 阅读 · 0 评论 -
C++ STL使用
string // substring and find string str="We think in generalities, but we live in details."; string str2 = str.substr (3,5); // "think" size_t pos = str.find("live"); // position of原创 2018-10-28 03:09:41 · 97 阅读 · 0 评论 -
mutex, unique_lock & lock_guard
mutex v.s. unique_lock The usage of std::mutex and std::unique_lock are similar. They both have lock() and unlock() operations. The difference is that std::unique_lock calls unlock on the mutex in its...转载 2018-11-16 03:37:43 · 149 阅读 · 0 评论