_DEBUG_RANGE是什么意思

elated 2009-11-17 10:30:30
STL中好多的_DEBUG_RANGE是什么意思?

template<class _InIt, class _Ty>
inline
_InIt _Find(_InIt _First, _InIt _Last, const _Ty& _Val)
{ // find first matching _Val
_DEBUG_RANGE(_First, _Last);
for (; _First != _Last; ++_First)
if (*_First == _Val)
break;
return (_First);
}
...全文
227 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
jackyjkchen 2009-11-17
  • 打赏
  • 举报
回复
// TEMPLATE FUNCTION _Debug_range
template<class _InIt> inline
void __CLRCALL_OR_CDECL _Debug_range2(_InIt, _InIt, const wchar_t *, unsigned int ,
input_iterator_tag)
{ // test iterator pair for valid range, arbitrary iterators
}


全部在这里了。
jackyjkchen 2009-11-17
  • 打赏
  • 举报
回复
#define _DEBUG_RANGE_IMPL _Debug_range

template<class _InIt> inline
void __CLRCALL_OR_CDECL _Debug_range(_InIt _First, _InIt _Last, const wchar_t *_File, unsigned int _Line)
{ // test iterator pair for valid range
_Debug_range2(_First, _Last, _File, _Line, _Iter_cat(_First));
}
jackyjkchen 2009-11-17
  • 打赏
  • 举报
回复
#define _DEBUG_RANGE(first, last) \
_DEBUG_RANGE_IMPL(first, last, __FILEW__, __LINE__)

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧