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

Search:

Type: Posts; User: kempofighter

Search: Search took 0.54 seconds.

  1. Re: STL Sorting: How to sort a 'std::vector' containing classes/structures?

    Here is another adaptation of the example that uses two different kinds of predicates. The predicate specified can be a function pointer or a functor which is a class that defines operator() so that...
  2. Re: STL Sorting: How to sort a 'std::vector' containing classes/structures?

    Alternatively, you don't need to write a predicate function if there is a mechanism for comparing instances of class MyData. Notice how the class has an operator< defined. This is because the...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured