MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / default_int_cmp

Class default_int_cmp

code/data-structures/heap.cpp:3–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#define RESIZE
2#define SWP(x,y) tmp = x, x = y, y = tmp
3struct default_int_cmp {
4 default_int_cmp() { }
5 bool operator ()(const int &a, const int &b) const {
6 return a < b; } };
7template <class Compare = default_int_cmp> struct heap {
8 int len, count, *q, *loc, tmp;
9 Compare _cmp;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected