// 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);
}
它们的作用是什么?没看懂。
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.