作者:empty 页数:589 出版社:empty |
Introductionb'Defining functions on the run using lambda expressions'。b'Adding polymorph y by wrapping lambdas into std x function'Composing functions by concatenation'。b'Creating complex predicates with logical conjunctionCalling multiple functions with the same input'·blImplementingtransform_ifusingstd:accumulateandlambdas'·b'Generating cartesian product pairs of any input at compile time5:STL Algorithm BasicsbChapter5:STLAlgorithmBasics'·b'Copying items from containers to other containers'Sorting containers'Removing specific items from containers'Transforming the contents of containers'·b Finding items in ordered and unordered vectors'。b Limiting xc31x 82 xc 2 xa 0 the values xe3x 82 xc 2 xaO of a vectorLocating patterns in strings with std:search and choosing theSampling large vectors'。b'Generating permutations of input sequences' Implementing a dictionary merging tool6:Advanced Use of STL Algorithms·b'Chapter6:AdvancedUseofSTLAlgorithms'Introduction'·b Implementing a trie class using STL algorithms' Implementing xc 3 x82xc2xaOa search Implementing the Fourier transform formula with STL numericCalculating the error sum of two vectors'·b Implementing an ASCII Mandelbrot renderer'。b'Building our own algorithm-split。b'Composing useful algorithms from standard algorithms-gather'Removing consecutive whitespace between words'Compressing and decompressing strings7:Strings.Stream Classes, and Regular ExpressionsChapter7:Strings.StreamClasses.andRegularExpressions'
l Introduction'。b'Creating, concatenating, and transforming strings'。b'Trimming whitespace from the beginning and end of strings'Getting the comfort of stdstringxc3x 82 xc 2 xaO without theReading values xc3x82xc2xa 0 from userinput'Counting all words in a file·b Formatting your output with I/Ostream manipulators'l Initializing complex jects from file inputFilling containers from std::istream iterators'Generic printing with std::ostream iterators'。b'Redirecting output to files for specific code sections'。b'Creating custom string classes by inheriting from std:char traits'。b'Token izing input with the regularexpression library'b'Comfortably pretty printing numbers differently per context onCatching readable exceptions from std:iostream errors'·8:Utility Classes