- 博客(27)
- 资源 (59)
- 收藏
- 关注
原创 partition/stable_partition详解
Partition:将满足条件的元素向前移动.// TEMPLATE FUNCTION partitiontemplateclass _BidIt,class _Pr> inline_BidIt _Partition(_BidIt _First, _BidIt _Last, _Pr _Pred){ // move elements satisfying _Pred to beg
2012-05-27 16:14:33 3129 1
原创 random_shuffle
Random_shuffle:随机打乱容器. // TEMPLATE FUNCTION random_shuffletemplate<class _RanIt, class _Diff> inline void _Random_shuffle(_RanIt _First, _RanIt _Last, _Diff *) { // shuffle [_First, _Last)
2012-05-27 16:13:13 2247
原创 rotate/rotate_copy详解
旋转元素次序:rotate源码:templateclass _RanIt,class _Diff,class _Ty> inlinevoid _Rotate(_RanIt _First, _RanIt _Mid, _RanIt _Last, _Diff *, _Ty *){ // rotate [_First, _Last), random-access iterators
2012-05-27 16:12:20 1336
原创 next_permutation/prev_permutation详解
Next_permutation:按照升序全排列源码:// TEMPLATE FUNCTION next_permutationtemplateclass _BidIt> inlinebool _Next_permutation(_BidIt _First, _BidIt _Last){ // permute and test for pure ascending, using
2012-05-27 16:11:49 1088
原创 reverse/reverse_copy详解
reverse:逆转元素次序 //TEMPLATE FUNCTION reversetemplateclass_BidIt>inline void_Reverse(_BidIt _First, _BidIt _Last, bidirectional_iterator_tag) { // reverse e
2012-05-14 22:28:56 1265
原创 unique_copy/unique_copy_if详解
unique_copy:在unique的基础上,不改变源容器,并将得到的结果复制给_Dest.templateclass _FwdIt, class_OutIt, class_Pr> inline _OutIt _Unique_copy(_FwdIt _First,_FwdIt _Last,
2012-05-14 22:28:20 944
原创 unique详解
unique:移除连续重复元素的多余元素 // TEMPLATEFUNCTION uniquetemplateclass_FwdIt>inline _FwdIt _Unique(_FwdIt _First, _FwdIt_Last) { // remove each matching previous
2012-05-14 22:27:48 1623
原创 remove_copy/remove_copy_if详解
remove_copy:移除值为value的元素,并将处理后在容器复制到另一容器里.源码: // TEMPLATE FUNCTION remove_copytemplateclass _InIt, class _OutIt, class _Ty> inline _OutIt _Remov
2012-05-14 22:26:46 2764
原创 replace_copy/replace_copy_if
replace_copy:这个函数和replace对应,唯一不同的是,它将得到的结果存在另一个容器里面 // TEMPLATEFUNCTION replace_copytemplateclass _InIt, class_OutIt, class_Ty> inline _OutIt _Replace_copy(
2012-05-12 21:46:55 1302
原创 replace/replace_if详解
replace:替换指定值的元素 //TEMPLATE FUNCTION replacetemplateclass _FwdIt, class_Ty> inline void_Replace(_FwdIt _First, _FwdIt _Last, const_Ty& _
2012-05-12 21:45:58 1702
原创 generate详解
generate:将区间[beg,end)赋值为fun返回值 //TEMPLATE FUNCTION generate_ntemplateclass _OutIt, class_Diff, class_Fn0> inline void_Generate_n(_OutIt _Dest, _Diff _
2012-05-10 22:10:53 2260
原创 fill详解
fill:将区间[beg,end)赋新值 // TEMPLATEFUNCTION filltemplateclass _FwdIt, class_Ty> inline void_Fill(_FwdIt _First, _FwdIt _Last,const_Ty& _Val) { // copy
2012-05-10 22:10:28 1413
原创 swap_ranges详解
swap_ranges:交换两个区间的元素,如果两个区间是容器的所有元素.应该使用swap. //TEMPLATE FUNCTION swap_rangestemplateclass_FwdIt1, class_FwdIt2> inline _FwdIt2 _Swap_ranges(_FwdIt1 _First1,_FwdIt
2012-05-10 22:10:02 1625
原创 transform详解
transform:形式一:transform(begSrc,endSrc,begDest,Fun)函数功能:对[begSrc,endSrc)运用Fun操作,并将返回值赋值给begDest.其中Fun的形式为:T (Fun*)(T)这里需要注意begDest需要的区间要求是最少大于distance[begSrc,endSrc).否则将会引起覆盖.templateclass _I
2012-05-10 22:09:26 1870
原创 copy/copy_backward
copy:将源区间中的所有元素复制到dest为起点中去.templateclass _InIt, class _OutIt> inline _OutIt copy(_InIt _First, _InIt _Last, _OutIt _Dest) { // copy [_First
2012-05-08 23:00:57 1323
原创 lexicographical_compare详解
lexicographical_compare函数功能:按照字典顺序比较前一区间是否小于后一区间.templateclass _InIt1, class _InTy, size_t _InSize, class _Pr> inline bool equal(_InIt1 _First1, _InIt1 _Las
2012-05-08 22:59:21 1871
原创 mismatch详解
mismatch:搜寻两区间第一处不同点.templateclass _InIt1, class _InIt2> inline pair mismatch(_InIt1 _First1, _InIt1 _Last1, _InIt2 _First2)
2012-05-08 22:57:41 2982
原创 equal详解
equal:判断[_First1,_Last1)与[_First2,...)开头区间的元素是否相等.templateclass _InIt1, class_InIt2> inline boolequal(_InIt1 _First1, _InIt1 _Last1, _InIt2 _First2)
2012-05-07 22:41:41 1643
原创 adjacen_find详解
adjacen_find:搜索给定区间中两个连续相等的元素这个函数也以重载的形式给出了这两个函数.一个是默认的关系运算(==),一个是仿函数//TEMPLATE FUNCTION adjacent_findtemplateclass_FwdIt>inline _FwdIt _Adjacent_find(_FwdIt _First,_FwdIt _Last)
2012-05-07 22:11:36 985
原创 find_first_of详解
find_first_of函数和其他函数类似,提供了两个函数,一个支持仿函数,一个内置关系运算符(以默认的函数功能:返回第一个既在_First1-_Last1中,又在_First2-_Last2中元素的位置(第一个范围). //TEMPLATE FUNCTION find_first_oftemplateclass_FwdIt1,
2012-05-07 21:48:13 2407
原创 find_end详解
函数功能:查找在父序列中最后匹配的子序列.find_end这个函数比较特殊一点,说起特殊并不是指其功能的特殊,而是其命名的特殊.我们知道find系列算法是查找指定值的函数(单个值),而search系列则是查找”子系列”算法.但是Nicolai M.Josuttis在书里面也介绍到了原因:它说是因为这些算法并非早起STL的部分.这可能就是需要C++标准委员会商榷的一部分了.但是话又说回来,如果按
2012-05-06 22:24:47 3436
原创 search详解
search算法: //TEMPLATE FUNCTION searchtemplateclass_FwdIt1, class_FwdIt2, class_Diff1, class_Diff2> inline _FwdIt1 _Search(_FwdIt1 _First1
2012-05-05 08:42:17 1539
原创 max_element/min_element详解
max_element/min_element:max_element算法:templateclass_FwdIt>inline _FwdIt _Max_element(_FwdIt _First,_FwdIt _Last) { // find largest element, using operator _Fw
2012-05-05 08:41:35 1537 1
原创 find/find_if详解
find/find_if:函数功能:返回元素值为_Val的迭代器templateclass _InIt, class_Ty> inline _InIt find(_InIt _First, _InIt _Last, const _Ty& _Val) { // find first matching _Val
2012-05-05 08:40:39 1616
原创 count与count_if详解
声明:以后所有函数的讨论和前面一样,都是在vs2010基础上.count有两个功能相似的函数:一个是本身另一个是count_if首先是count:函数功能:返回区间取值为_Val的元素个数.templateclass _InIt, class_Ty> inline typenameiterator_traits::difference_t
2012-05-02 22:40:20 1871 1
原创 for_each详解
说明:在使用STL算法库的过程中,如果单单就某个函数做一些使用,而不了解其内部的实现原理,在使用过程中将会存在大量的"问题",因此,在最近这段时间里,我将对每个函数深入挖掘定义(vs2010 stl版本)函数功能:对区间[beg,end)执行_Fn1.并返回_Fn1.templateclass _InIt, class_Fn1> inline
2012-05-02 22:08:10 1380
原创 配接器compose_f_gx,compose_f_gx_hy实现实例
源码:templateclass compose_f_gx_hy_t :public binary_function<typename OP2::argument_type, typename OP3::argument_type, typename OP1::result_type>{private: OP1 op1; OP2 op2; OP3 op3;public: c
2012-05-01 21:12:18 2178
注册表编程应用实例 API 实例 VC
2010-09-24
VC++ 助手 Assist.X 破解版
2010-09-20
tcp-ip详解 卷3 实现 网络编程 VC++
2010-09-09
线程详解 VC++经典讲解
2010-09-05
VC知识库 在线杂志 21
2010-09-04
VC++ 技术内幕 笔记 潘爱民
2010-08-27
VC++ 技术内幕 笔记 潘爱民
2010-08-27
Spy++.chm VC++ 6.0 调试
2010-08-23
VC++库函数 pdf版
2010-08-23
Effective+C++.chm
2011-02-25
VC++ 范例大全 源码
2010-12-14
进程查看器,可以检测到系统运行的进程,以及进程的所属关系
2010-11-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人