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

Search:

Type: Posts; User: fadecomic

Search: Search took 0.01 seconds; generated 47 minute(s) ago.

  1. Replies
    4
    Views
    5,454

    Re: Original indices before partial_sort()?

    Thanks for the tip on nth_element. That clearly involves less work. That will at best be O(n) I see.
  2. Replies
    4
    Views
    5,454

    Re: Original indices before partial_sort()?

    Head-smacker. Of course. You mean just write a comparison that really compares the x value, right? I hate not seeing the obvious ones. :)
  3. Replies
    4
    Views
    5,454

    [RESOLVED] Original indices before partial_sort()?

    If I wanted to use partial_sort() to find the first k of n values (because of the O(n log k) complexity), is there any way to retrieve the original indices of the sorted vector? I need them to access...
  4. Replies
    5
    Views
    6,773

    Re: destroying STL vectors explicitly?

    The functions are fairly singular in task. The problem is that logically, inTetr is part of the description of a node. It's a piece of information that's actually needed by a multitude of...
  5. Replies
    5
    Views
    6,773

    Re: destroying STL vectors explicitly?

    Ah, okay. That's a head-slapper. I was using the reference operator, but I wasn't placing the parentheses. Though it makes perfect sense why that would be necessary.

    I knew about the swap trick,...
  6. Replies
    5
    Views
    6,773

    destroying STL vectors explicitly?

    Hi,

    I have a rather large, memory intensive program that I'm trying to slim down. Within this program are class instances parts of which have to persist to the end of the run and parts of which...
Results 1 to 6 of 6





Click Here to Expand Forum to Full Width

Featured