Update emitter.hpp
This commit is contained in:
parent
8bd65303e2
commit
d8c94e8b3d
@ -212,7 +212,7 @@ public:
|
||||
*/
|
||||
void clear() noexcept {
|
||||
std::for_each(handlers.begin(), handlers.end(),
|
||||
[](auto &&_handler){ if(_handler) { _handler->clear(); } });
|
||||
[](auto &&hdlr){ if(hdlr) { hdlr->clear(); } });
|
||||
}
|
||||
|
||||
/**
|
||||
@ -236,7 +236,7 @@ public:
|
||||
*/
|
||||
bool empty() const noexcept {
|
||||
return std::all_of(handlers.cbegin(), handlers.cend(),
|
||||
[](auto &&_handler){ return !_handler || _handler->empty(); });
|
||||
[](auto &&hdlr){ return !hdlr || hdlr->empty(); });
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user