From 9cb8e194b09b781d6b8c439eb8d2741983438618 Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 16 Jan 2017 15:58:05 -0500 Subject: [PATCH] use generic container --- Queue.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Queue.h b/Queue.h index 39d139b9..9e95b2a5 100644 --- a/Queue.h +++ b/Queue.h @@ -25,7 +25,8 @@ namespace util m_NonEmpty.notify_one (); } - void Put (const std::vector& vec) + templateclass Container, typename... R> + void Put (const Container& vec) { if (!vec.empty ()) {