Three important words:
BINARY...SEARCH...TREE.
Type: Posts; User: TeenWolf
Three important words:
BINARY...SEARCH...TREE.
I was hoping to reduce this problem, traditionally solved in your manner, to a neat and sophisticated algorithm like generate or for_each, preferrably generate because it makes the most sense.
Is it possible to store the contents of a file in a vector of strings, with the delimiter being whitespace...using C++ algorithms and function objects?
Oh yeah, and the vector's size cannot be...
But how do I "grab at" this implicit iterator that has no name? I can't just say myIter->length() or strlen(*myIter) because there is no myIter.
I researched the mem_fun family but I'm still...
C++ has many algorithms in the form:
algo_if ( iterator, iterator, unary_function_object );
Take, for example:
algo_if (myContainer.begin(), myContainer.end(), bind1st (equal_to<size_t> (),...