#include <stdlib.h>
#include "sort_pairs.hpp"
Go to the source code of this file.
Functions |
template<class A , class B > |
int | ComparePairs (const void *_p, const void *_q) |
| Compare the first element of the pairs.
|
template<class A , class B > |
void | SortPairs (Pair< A, B > *pairs, int size) |
| Sort with respect to the first element.
|
template int | ComparePairs< int, int > (const void *, const void *) |
template int | ComparePairs< double, int > (const void *, const void *) |
template void | SortPairs< int, int > (Pair< int, int > *, int) |
template void | SortPairs< double, int > (Pair< double, int > *, int) |
Function Documentation
template<class A , class B >
int ComparePairs |
( |
const void * |
_p, |
|
|
const void * |
_q |
|
) |
| |
Compare the first element of the pairs.
Definition at line 18 of file sort_pairs.cpp.
template int ComparePairs< double, int > |
( |
const void * |
, |
|
|
const void * |
|
|
) |
| |
template int ComparePairs< int, int > |
( |
const void * |
, |
|
|
const void * |
|
|
) |
| |
template<class A , class B >
void SortPairs |
( |
Pair< A, B > * |
pairs, |
|
|
int |
size |
|
) |
| |
Sort with respect to the first element.
Definition at line 31 of file sort_pairs.cpp.
template void SortPairs< double, int > |
( |
Pair< double, int > * |
, |
|
|
int |
|
|
) |
| |
template void SortPairs< int, int > |
( |
Pair< int, int > * |
, |
|
|
int |
|
|
) |
| |