| #include <set>
|
| #include <cstdint>
|
| #include <ctime>
|
|
|
| struct readRecord
|
| {
|
| uint32_t uid;
|
|
|
| int nReads;
|
|
|
| time_t when;
|
|
|
| bool programmed;
|
|
|
| static bool
|
| less (const readRecord a, const readRecord b)
|
| {
|
| return a.when < b.when;
|
| }
|
| };
|
|
|
|
|
| int
|
| main (int argc, char **argv)
|
| {
|
| std::set<readRecord> sorted;
|
|
|
| struct readRecord x = {1,2,3,true};
|
|
|
| sorted.insert (x);
|
| }
|