New paste Repaste Download
#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);
}
Filename: foo.cc. Size: 403b. View raw, , hex, or download this file.

This paste expires on 2026-06-11 14:37:56.285759+00:00. Pasted through web.