GeekBand C++ STL与泛型编程 第二周学习笔记

各种容器的iterators的iterator_category的typeid

istream_iterator的iterator_category

ostream_iterator的iterator_category

iterator_category对算法的影响

iterator_category和type traits对算法的影响

iterator_traits和type traits对算法的影响

算法源码中对iterator_category的暗示

算法accumulate

算法for_each

算法replace, replace_if, replace_copy

算法count, count_if

算法find, find_if

算法sort

关于revers iterator, rbegin(), rend()

算法binary_search

仿函数functors

仿函数的可适配条件

存在多种adapters

容器适配器:stack,queue

函数适配器:binder2nd

函数适配器:not1

新型适配器:bind

迭代适配器:reverse_iterator,inserter

X适配器:ostream_iterator, istream_iterator

tuple

type_traits:is_void, is_integral, is_class, is_union, is_enum, is_pod

moveable源于对于不同容器速度效能的影响


对作业的感受:

traits使用感觉十分混乱 暂用全特化 使用感觉很吃力

你可能感兴趣的:(GeekBand C++ STL与泛型编程 第二周学习笔记)