Some Tips on STL

2008-2-27 Nie.Meining Coding

Today I have reread Effective STL roughly in the C++ Class.  Here I take some notes:
The four numeric algorithms in <numeric>:
accumulate
inner_product
adjacent_difference
partial_sum

The algorithms about copy:
copy
copy_backward
replace_copy
reverse_copy
replace_copy_if
unique_copy
remove_copy
rotate_copy
remove_copy_if
partial_sort_copy
uninitialized_copy

Some algorithms which require sorted ranges:
binary_search
lower_bound
upper_bound
equal_range
set_union
set_intersection
set_difference
set_symmetric_difference
merge
inplace_merge
includes

发表评论:

Powered by emlog