From 2b2e0f07f5f35e5ab6bbe829f1a1ca5ea3cc50a1 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Tue, 9 Apr 2024 13:56:20 -0400 Subject: [PATCH] removing lambda for now --- lectures/24_priority_queues/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/24_priority_queues/README.md b/lectures/24_priority_queues/README.md index a0ea85c..8ce0fc0 100644 --- a/lectures/24_priority_queues/README.md +++ b/lectures/24_priority_queues/README.md @@ -176,7 +176,7 @@ int main() { 5 4 3 3 1 ``` -- When using std::priority_queue to store class objects, oftentimes, you need to define a class and overload its function call operator; or use a lambda expression. +- When using std::priority_queue to store class objects, oftentimes, you need to define a class and overload its function call operator. - You can use std::priority_queue as a min heap via using std::greater, as can be seen in this [example](min_heap.cpp): ```cpp