From ec5e9f6c875fea97d4e312045a346709df60a060 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 10 Aug 2011 21:30:03 +1000 Subject: [PATCH] Add empty query for signals --- signal.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/signal.hpp b/signal.hpp index fa18c551..2cda7084 100644 --- a/signal.hpp +++ b/signal.hpp @@ -66,6 +66,11 @@ namespace util { unsigned int size (void) const { return m_children.size (); } + + bool empty (void) const + { return m_children.empty (); } + + /// Execute all callbacks, ignoring the return parameters. Does not combine results. void operator () (Args... tail) { for (auto i = m_children.begin (), end = m_children.end (); i != end; ++i)