CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Threaded View

  1. #7
    Join Date
    Mar 2009
    Posts
    94

    Re: use of vector<int>::value_type?

    So JohnW: your Funtion() would be used like
    Code:
    std::vector<int> ivec;
    std::vector<int>::value_type result = Function(ivec)
    right? But it would work for different sequential containers with different value_types.

    ok thank you both.
    I am seeing it like through a mist now
    Will get there.


    OK one last question. Is there a difference between:
    std::vector<int>::value_type search_value;
    and
    int search_value; ?
    Last edited by w3rd; June 15th, 2009 at 11:39 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured