User Profile

Collapse

Profile Sidebar

Collapse
hellori
hellori
Last Activity: Nov 26 '07, 10:16 AM
Joined: Oct 1 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • hellori
    replied to Template & iterator Problem
    in C
    Thanks a lot, that solved my problem.
    See more | Go to post

    Leave a comment:


  • hellori
    started a topic Template & iterator Problem
    in C

    Template & iterator Problem

    Hi all, I have a question about passing iterators to a function. I want to create a function that does something with STL container iterators. The container of the iterator can vary, so I use a template container there. Here is the code:
    Code:
    template <class Container, class T>
    void do_sth(typename Container<T>::iterator &start, typename Container<T>::iterator &end, T &elem)
    {
      //Some
    ...
    See more | Go to post
No activity results to display
Show More
Working...