![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++
dhb52
这个作者很懒,什么都没留下…
展开
-
Checkout the iterator type
#ifndef _STLP_USE_OLD_HP_ITERATOR_QUERIES #define _STLP_ITERATOR_CATEGORY(_It, _Tp) __iterator_category(_It, _IsPtrType_Tp>::_Ret()) // _IsPtrType::_Ret() checks if pointer type // retu原创 2006-12-17 13:55:00 · 541 阅读 · 0 评论 -
How vector increases its size
template class _Tp, class _Alloc>void _VECTOR_IMPL_Tp, _Alloc>::_M_insert_overflow( pointer __pos, const _Tp& __x, const __true_type& /**//*_TrivialCpy*/, size_type __fill_len, bool __atend ) ..原创 2006-12-17 13:58:00 · 510 阅读 · 0 评论 -
_IsPtrType -- STL type checking on compile-time -- Substitution Failure Is Not An Error (SFINAE)
struct __true_type {};struct __false_type {};//bool to typetemplate int _Is> struct __bool2type { typedef __true_type _Ret; };template // icl supports both kinds of partial specializationstruct _原创 2006-12-17 13:41:00 · 566 阅读 · 0 评论