Skip to content

Glossary: Coding Interviews in C++

std::greater

Also written: std::greater<>

A comparison object that, passed to `std::priority_queue`, makes it a min-heap whose `top()` is the smallest item.

Where the book teaches it

Related terms

Heapstd::priority_queue