dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Paul McKenzie

Search: Search took 0.85 seconds.

  1. Re: general purpose Singly-linked list implementation with inheritance

    The std::list is a black box. You give it a T, and by the magic of templated code, you have a linked list of T. You don't have to change any code in the std::list to support your T.

    This is why...
  2. Re: general purpose Singly-linked list implementation with inheritance

    You don't have to "give up" anything. How does the std::list accomplish this? An std::list uses iterators to access the elements.


    #include <list>
    #include <iostream>

    int main()
    {
    ...
  3. Re: general purpose Singly-linked list implementation with inheritance

    So what?

    So you're saying that because it looks simple, it is no good? You have already everything -- just change the type T, and you have your other list type.

    What do you think you're...
  4. Re: general purpose Singly-linked list implementation with inheritance

    Here is what you stated in your first post:
    So my response to you is that you did not implement your template class correctly.
    You say you need to do all of that work when you use templates, but at...
  5. Re: general purpose Singly-linked list implementation with inheritance

    In your invesigative searches, did you see std::list? It is a doubly linked list. Do you see anywhere in using std::list anything as you've described, using all of those function calls to set a...
Results 1 to 5 of 5


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)


×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.