Add empty query for signals

This commit is contained in:
Danny Robson 2011-08-10 21:30:03 +10:00
parent 9b049861f1
commit ec5e9f6c87

View File

@ -66,6 +66,11 @@ namespace util {
unsigned int size (void) const unsigned int size (void) const
{ return m_children.size (); } { return m_children.size (); }
bool empty (void) const
{ return m_children.empty (); }
/// Execute all callbacks, ignoring the return parameters. Does not combine results. /// Execute all callbacks, ignoring the return parameters. Does not combine results.
void operator () (Args... tail) { void operator () (Args... tail) {
for (auto i = m_children.begin (), end = m_children.end (); i != end; ++i) for (auto i = m_children.begin (), end = m_children.end (); i != end; ++i)