c++ Programming Glossary: iterator_category
CSV parser in C++ http://stackoverflow.com/questions/1120140/csv-parser-in-c class CSVIterator public typedef std input_iterator_tag iterator_category typedef CSVRow value_type typedef std size_t difference_type..
enable_if iterator as a default template parameter? http://stackoverflow.com/questions/11898657/enable-if-iterator-as-a-default-template-parameter constructor only if TI is an iterator that means TI has an iterator_category I think . How to do that in C 2011 using an enable_if as a default.. a trait for the test. I think testing for the existence of iterator_category is enough but it should be done with std iterator_traits because.. T static sfinae_true typename std iterator_traits T iterator_category test int template typename static std false_type test ... template..
Enumerate over an enum in C++ http://stackoverflow.com/questions/1390703/enumerate-over-an-enum-in-c Color reference typedef std bidirectional_iterator_tag iterator_category Color operator Color c assert c Color_End c static_cast Color..
Canonical way to define forward output iterator http://stackoverflow.com/questions/14062297/canonical-way-to-define-forward-output-iterator rather than hoping to adapt the existing iterator_traits iterator_category to provide the information you want. share improve this answer..
What are the differences between concepts and template constraints? http://stackoverflow.com/questions/15669592/what-are-the-differences-between-concepts-and-template-constraints associated types value_type reference difference_type and iterator_category which themselves must meet certain concepts. They must also..
Flattening iterator http://stackoverflow.com/questions/3623082/flattening-iterator iterator inner_iterator typedef std forward_iterator_tag iterator_category typedef typename inner_iterator value_type value_type typedef..
Defining iterator of my own container http://stackoverflow.com/questions/4857892/defining-iterator-of-my-own-container For example all STL iterator types must define an iterator_category field containing a type encoding their capabilities. This way..
Template parameters not used in partial specialization http://stackoverflow.com/questions/6398912/template-parameters-not-used-in-partial-specialization pointer typedef typename std random_access_iterator_tag iterator_category This is the full error message carray.h 128 error template..
C++ STL: Can arrays be used transparently with STL functions? http://stackoverflow.com/questions/713309/c-stl-can-arrays-be-used-transparently-with-stl-functions between two iterators has returned by std distance . iterator_category this is a tag type it is typedefed to a type that represents..
Concatenating C++ iterator ranges into a const vector member variable at construction time http://stackoverflow.com/questions/757153/concatenating-c-iterator-ranges-into-a-const-vector-member-variable-at-constru concat_iterator public typedef std forward_iterator_tag iterator_category typedef typename iterator_traits T1 value_type value_type typedef..
Writing your own STL Container http://stackoverflow.com/questions/7758580/writing-your-own-stl-container container I pieced togeather from § 23.2.1 4 Note that the iterator_category should be one of std input_iterator_tag std output_iterator_tag.. A pointer pointer typedef std random_access_iterator_tag iterator_category or another tag iterator iterator const iterator ~iterator iterator.. const_pointer typedef std random_access_iterator_tag iterator_category or another tag const_iterator const_iterator const const_iterator..
How to implement an STL-style iterator and avoid common pitfalls? http://stackoverflow.com/questions/8054273/how-to-implement-an-stl-style-iterator-and-avoid-common-pitfalls reference usually T typedef pointer usually T typedef iterator_category usually std forward_iterator_tag or similar Note the iterator_category.. usually std forward_iterator_tag or similar Note the iterator_category should be one of std input_iterator_tag std output_iterator_tag..
std::lower_bound slower for std::vector than std::map::find http://stackoverflow.com/questions/8784732/stdlower-bound-slower-for-stdvector-than-stdmapfind pointer pointer typedef std bidirectional_iterator_tag iterator_category inline iterator const typename undertype_ iterator rhs data..
|