Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

inversed priority queue

//Creating an alias
template<class T> using min_heap = priority_queue<T, std::vector<T>, std::greater<T>>;

//Declaration
min_heap<int> my_heap;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #inversed #priority #queue
ADD COMMENT
Topic
Name
8+8 =