C++的algorithm源码_Unchecked和_Rechecked的作用是什么呢?
怪我咯
怪我咯 2017-04-17 15:02:06
0
2
559
// TEMPLATE FUNCTION _Unchecked
template<class _Iter> inline
    _Iter _Unchecked(_Iter _Src)
    {    // construct unchecked from checked, generic
    return (_Src);
    }

        // TEMPLATE FUNCTION _Rechecked
template<class _Iter,
    class _UIter> inline
    _Iter& _Rechecked(_Iter& _Dest, _UIter _Src)
    {    // reset checked from unchecked, generic
    _Dest = _Src;
    return (_Dest);
    }

它们的作用是什么?没看懂。

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
刘奇

https://stackoverflow.com/que...

刘奇

Sorry. Just looking at this code snippet, I really don’t know what it means.

I personally think that you should bring this into some practical application scenarios for analysis. Although it is a template, because the template is abstract. If you can bring in specific examples, I think it should be easier to understand.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!