Example program for advancing iterators.
標簽: advancing iterators Example program
上傳時間: 2015-01-15
上傳用戶:moshushi0009
The goal of this library is to make ODBC recordsets look just like an STL container. As a user, you can move through our containers using standard STL iterators and if you insert(), erase() or replace() records in our containers changes can be automatically committed to the database for you. The library s compliance with the STL iterator and container standards means you can plug our abstractions into a wide variety of STL algorithms for data storage, searching and manipulation. In addition, the C++ reflection mechanism used by our library to bind to database tables allows us to add generic indexing and lookup properties to our containers with no special code required from the end-user. Because our code takes full advantage of the template mechanism, it adds minimal overhead compared with using raw ODBC calls to access a database.
標簽: recordsets container library ODBC
上傳時間: 2015-10-11
上傳用戶:xlcky
本書由知名的C++專家Matthew H.Austern執筆,引導你進入泛型編程思維模型,并將你帶往此一模型的最重要成品:C++ Standard Template Library(STL)。本書揭示STL的奧秘,告訴你STL不僅僅是一組方便運用的容器類(container classes)。對于泛型組件和可交互作用的組件而言,STL是一個具備擴充能力的框架(framework)、 《泛型編程與STL》闡述了泛型編程的中心思想:concepts、modeling、refinement,并為你展示這些思想如何導出STL的基礎概念:iterators、containers、function objects。循此路線,你可以把STL想像為一個由concepts(而非明確之functions或classes)組成的程序庫:、你將學習其正式結構并因此獲得其潛在威力所帶來的完整優勢。本書使你能夠: ●以你自己的“可移植組件”及“可交互作用之泛型組件”擴充STL; ●產生一些算法,讓它們和它們所處理之型別(types)及數據結構徹底劃清界線; ●撰寫更精致、更高效、更有效力的代碼,可跨平臺重復使用。
上傳時間: 2014-01-06
上傳用戶:Avoid98
The Standard Template Library, or STL, is a C++ library of container classes, algorithms, and iterators it provides many of the basic algorithms and data structures of computer science
標簽: algorithms container Standard Template
上傳時間: 2016-08-17
上傳用戶:彭玖華
CppReference 對于c/c++的詳盡說明 C/C++ Reference General C/C++ Pre-processor commands Operator Precedence Escape Sequences ASCII Chart Data Types Keywords Standard C Library Standard C I/O Standard C String & Character Standard C Math Standard C Time & Date Standard C Memory Other standard C functions All C Functions C++ C++ I/O C++ Strings C++ String Streams Miscellaneous C++ C++ Standard Template Library C++ Algorithms C++ Vectors C++ Double-Ended Queues C++ Lists C++ Priority Queues C++ Queues C++ Stacks C++ Sets C++ Multisets C++ Maps C++ Multimaps C++ Bitsets iterators All C++ Functions
標簽: Pre-processor CppReference Reference Operator
上傳時間: 2016-10-26
上傳用戶:aeiouetla
㆒ 般㆟ 對 C++ templates 的粗淺印象,大約停留在「容器(containers)」的製作㆖ 。稍有研究 則會發現,templates衍生出來的 C++ Generic Programming(泛型編程)技術,在 C++ 標準程 式庫㆗ 已經遍㆞ 開花結果。以 STL為重要骨幹的 C++ 標準程式庫,將 templates 廣泛運用於容 器 (containers) 、演算法 (algorithms) 、仿函式 (functors) 、配接器 (adapters) 、配置器 (allocators) 、 迭代器(iterators)㆖ 頭,無處不在,無役不與,乃至於原有的 class-based iostream都被改寫為 template-based iostream。
上傳時間: 2016-10-28
上傳用戶:rocwangdp
C++ 標準程序庫提供一組通用類別(classes)和接口(interfaces),可大幅擴充 C++ 核心語言。由于程序庫本身并不容易,為了完整運用其組件并從其強大的威力中獲得幫助,你需要一份完善的資源,而非一份僅僅陳列類和函數的普通文檔。《The C++ Standard Library》不僅對每一個程序庫組件提供范圍廣泛的說明,也對繁雜的感念提供清楚明亮的解釋,并描述高效運用這些組件時需要的實際編程細節,提出一個又一個的范例程序。這本包含最新資料的完整書籍,反映出被 ANSI/ISO C++ 語言標準規格書納入的 C++ 標準程序庫的結構。更明確地說,本書將焦點放在標準模板庫(Standard Template Library)身上,檢驗其中的容器(containers)、迭代器(iterators)、仿函數(functors)和算法(algorithms)。你還可以找到特殊容器、字符串(strings)、數值類別、國際化議題、IOStream。每一個組件都有深刻的呈現,包括其介紹、設計、運用實例、細部解說、陷阱、意想不到的危險,以及相關類別和函數的確切標記(signature)和定義。一份見解深刻的基礎概念介紹和一個程序庫綜合鳥瞰,會對新手帶來快速的提升。
標簽: interfaces classes 標準 接口
上傳時間: 2017-02-10
上傳用戶:天涯
Learn how to: * Tokenize a null-terminated string * Create a search and replace function for strings * Implement subtraction for string objects * Use the vector, deque, and list sequence containers * Use the container adaptors stack, queue, and priority_queue * Use the map, multimap, set, and multiset associative containers * Reverse, rotate, and shuffle a sequence * Create a function object * Use binders, negators, and iterator adapters * Read and write files * Use stream iterators to handle file I/O * Use exceptions to handle I/O errors * Create custom inserters and extractors * Format date, time, and numeric data * Use facets and the localization library * Overload the [ ], ( ), and -> operators * Create an explicit constructor * And much, much more
標簽: null-terminated Tokenize Create string
上傳時間: 2014-01-18
上傳用戶:yph853211
Boost C++ Libraries Free peer-reviewed portable C++ source libraries Boost C++ Libraries 基本上是一個免費的 C++ 的跨平臺函式庫集合,基本上應該可以把它視為 C++ STL 的功能再延伸;他最大的特色在於他是一個經過「同行評審」(peer review,可參考維基百科)、開放原始碼的函式庫,而且有許多 Boost 的函式庫是由 C++ 標準委員會的人開發的,同時部分函式庫的功能也已經成為 C++ TR1 (Technical Report 1,參考維基百科)、TR2、或是 C++ 0x 的標準了。 它的官方網站是:http://www.boost.org/,包含了 104 個不同的 library;由於他提供的函式庫非常地多,的內容也非常地多元,根據官方的分類,大致上可以分為下面這二十類: 字串和文字處理(String and text processing) 容器(Containers) iterators 演算法(Algorithms) Function objects and higher-order programming 泛型(Generic Programming) Template Metaprogramming Preprocessor Metaprogramming Concurrent Programming 數學與數字(Math and numerics) 正確性與測試(Correctness and testing) 資料結構(Data structures) 影像處理(Image processing) 輸入、輸出(Input/Output) Inter-language support 記憶體(Memory) 語法分析(Parsing) 程式介面(Programming Interfaces) 其他雜項 Broken compiler workarounds 其中每一個分類,又都包含了一個或多個函式庫,可以說是功能相當豐富。
上傳時間: 2015-05-15
上傳用戶:fangfeng