Tweets
- RT @blelbach: C++20 has been published! iso.org/standard/79358… 4 weeks ago
- RT @NicoJosuttis: Help me: Which ranges implementation is currently most standard conforming? I have to write an urgent paper to fix cbegin… 4 weeks ago
- RT @NicoJosuttis: C++ Initialization matrix: josuttis.com/cpp/c++initial… I tried to summarize all the basic ways of initialization in C++ in o… 1 month ago
-
Recent Posts
- Should the new Mac mini M1 be called a Big Mac?
- CPPCON2020 Plenary Session Review: Performance Matters
- CPPCON2020 Session Review: Back to Basics: Concurrency
- CPPCON2020 Session Review: Test Driven C++
- CPPCON2020 Session Review: Retiring the Singleton Pattern: Concrete suggestions for what to use instead
Blogs I Follow
Recent Comments
Archives
Categories
Meta
Category Archives: algorithms
Customizing Priority Queues in C++
A nifty feature of priority queues in C++ is that you can implement a max heap or a min heap by simply changing the compare type. For most purposes, std::less and std::greater can do the job, provided that you use built-in … Continue reading
Posted in algorithms, data structures, software
Leave a comment