From 4f4b81235636e0e580b32847f49555ddd30e2eeb Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 22 Mar 2018 14:57:24 +1100 Subject: [PATCH] parallel/queue: add capacity query --- parallel/queue.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parallel/queue.hpp b/parallel/queue.hpp index 99321afd..46ae8f07 100644 --- a/parallel/queue.hpp +++ b/parallel/queue.hpp @@ -52,6 +52,9 @@ namespace util::parallel { { ; } + static constexpr auto capacity (void) { return SizeV; } + + /// attempts to push a value to the queue /// /// algorithm proceeds as follows: