October 13th, 2013, 05:15 AM
STL algorithm adapter
An external library has the following header file;
To iterate this collection I can obviously use a loop. However, would it be possible to use STL algorithms functions on this collection? A lot of those methods use an iterator as input parameter, would be possible to make an adapter class to make this work?
template <typename T>
const T& operator(unsigned long index) const;
unsigned long length() const;
, make an effort yourself, try googling
or search here
, give a proper description of your problem, include code* and error messages.
*All code should include code tags
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.