From 945c7c532bac85f028b386f2e2ab74d38e93e333 Mon Sep 17 00:00:00 2001 From: Erik Rigtorp Date: Sun, 19 Dec 2021 10:30:22 -0800 Subject: [PATCH] Fix return type for pop, size, empty in README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ed1b0ea..971a9a6 100644 --- a/README.md +++ b/README.md @@ -65,16 +65,16 @@ See `src/SPSCQueueExample.cpp` for the full example. Return pointer to front of queue. Returns `nullptr` if queue is empty. -- `pop();` +- `void pop();` Dequeue first item of queue. Invalid to call if queue is empty. Requires `std::is_nothrow_destructible::value == true`. -- `size();` +- `size_t size();` Return the number of items available in the queue. -- `empty();` +- `bool empty();` Return true if queue is currently empty.