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