#include <iostream>
Go to the source code of this file.
enum for the types of gifts
Enumerator |
---|
essential |
|
luxury |
|
utility |
|
Definition at line 7 of file gift.h.
bool compareOnPriceAsc |
( |
Gift |
g1, |
|
|
Gift |
g2 |
|
) |
| |
Comparator to compare Gifts on basis of their price
For sorting in ascending order
Definition at line 8 of file gift.cpp.
bool compareOnPriceDesc |
( |
Gift |
g1, |
|
|
Gift |
g2 |
|
) |
| |
Comparator to compare Gifts on basis of their price
For sorting in descending order
Definition at line 13 of file gift.cpp.
bool compareOnValue |
( |
Gift |
g1, |
|
|
Gift |
g2 |
|
) |
| |
Comparator to compare Gifts on basis of their value
For sorting in descending order
Definition at line 3 of file gift.cpp.