↧
How to convert iterator to corresponding data pointer?
Well it was quite easy in VC6 to work with iterators since iterators were actual pointers to internal data, so they could be used interchangeably. For e.g. typedef std::vector<int> IntVector;...
View ArticleUsing std transform function
So what does std::transform function do? “Applies a specified function object to each element in a source range or to a pair of elements from two source ranges and copies the return values of the...
View ArticleWorking with the STL iterators
Almost every programmer some how gets involved with STL iterators while programming. I’m quite fond of these concepts. So what exactly is an iterator? STL stands for the Standard Template Library which...
View Article