GeekBand C++ STL與泛型編程 第二周學(xué)習(xí)筆記

各種容器的iterators的iterator_category的typeid

istream_iterator的iterator_category

ostream_iterator的iterator_category

iterator_category對(duì)算法的影響

iterator_category和type traits對(duì)算法的影響

iterator_traits和type traits對(duì)算法的影響

算法源碼中對(duì)iterator_category的暗示

算法accumulate

算法for_each

算法replace, replace_if, replace_copy

算法count, count_if

算法find, find_if

算法sort

關(guān)于revers iterator, rbegin(), rend()

算法binary_search

仿函數(shù)functors

仿函數(shù)的可適配條件

存在多種adapters

容器適配器:stack,queue

函數(shù)適配器:binder2nd

函數(shù)適配器: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源于對(duì)于不同容器速度效能的影響


對(duì)作業(yè)的感受:

traits使用感覺十分混亂 暫用全特化 使用感覺很吃力

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容