stdxIseq.h Classes and Functions
This is a collection of classes and functions which implement the concept of explicit input sequences. Overloaded functions are provided for various STL functions in <algorithm>. The objective is to avoid the tedious requirement to specify two iterators whenever using any of the sequence algorithms. It would be much easier to just specify the container itself, and this would imply iterating over the entire container. The idea comes from Stroustrup's "The C++ Programming Language: 3rd Edition" Section 18.3.1.
Compounds
Functions
|
|
- for_each (Iseq< In > r, Fun f)
- find (Iseq< In > r, const T &v)
- find_if (Iseq< In > r, Pred p)
- remove (Iseq< In > r, const T &v)
- remove_if (Iseq< In > r, Pred p)
- copy (Iseq< In > r, Out res)
- copy_if (Iseq< In > r, Out res, Pred p)
- copy_ptr (Iseq< In > r, Out res)
- copy_ptr_if (Iseq< In > r, Out res, Pred p)
- sort (Iseq< Ran > r, Cmp cmp)
- sort (Iseq< Ran > r)
- stable_sort (Iseq< Ran > r, Cmp cmp)
- for_each (Iseq< In1 > in1, In2 in2, BinOp op)
- transform (Iseq< In > r, Out res, Op op)
- transform (Iseq< In > r, In2 in2, Out res, BinOp op)
- min_element (Iseq< In > r)
- unique (Iseq< For > r, Cmp cmp)
- unique (Iseq< For > r)
- unique_copy (Iseq< For > r, Out o, Cmp cmp)
- unique_copy (Iseq< For > r, Out o)
- equal (Iseq< For > r, Out o)
- generate (Iseq< For > in, Gen g)
- fill (Iseq< For > in, const T &val)
- rotate_left (Iseq< For > in)
- max_element (Iseq< For > in)
- count_if (Iseq< In > in, Pred p)
- count (Iseq< In > in, Val v)
|