Exemplo n.º 1
0
	bool check() {
		if(active) {
			if(!time_left()) {
				if(!callback.empty()) {
					callback();
					callback.clear();
				}
				active = false;
				return true;
			}
		}
		return false;
	}
Exemplo n.º 2
0
 bool is_empty_function(function<Sig, IArchive, OArchive> const& f)
 {
     return f.empty();
 }
Exemplo n.º 3
0
 binary_function(function const& a, function const& b)
   : a(a), b(b)
 {
     BOOST_ASSERT(!a.empty());
     BOOST_ASSERT(!b.empty());
 }
Exemplo n.º 4
0
 unary_function(function const& a)
   : a(a)
 {
     BOOST_ASSERT(!a.empty());
 }