![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++源码系列
gokingd
保持理智
展开
-
C++中对auto 引用的一些细节的记录
顺序容器访问成员函数返回的是引用 即front、back、下标和at 返回的是引用 这里以front成员函数为例,找到front的源码 /** * Returns a read/write reference to the data at the first * element of the %vector. */ reference front() _GLIBCXX_NOEXCEPT { return *begin();原创 2021-02-10 12:49:14 · 1164 阅读 · 0 评论 -
C++源码学习与解析------next_permutation
直接上源码 template<typename _BidirectionalIterator, typename _Compare> bool __next_permutation(_BidirectionalIterator __first, _BidirectionalIterator __last, _Compare __comp) { if (__first == __last) //没有元素,return false re原创 2021-01-30 15:56:31 · 414 阅读 · 1 评论