minor changes: noexcept-ness review (close #372)
This commit is contained in:
@@ -116,7 +116,7 @@ public:
|
||||
* @return A temporary sink object.
|
||||
*/
|
||||
template<typename Event>
|
||||
auto sink() ENTT_NOEXCEPT {
|
||||
auto sink() {
|
||||
return assure<Event>().sink();
|
||||
}
|
||||
|
||||
@@ -187,7 +187,7 @@ public:
|
||||
* @tparam Event Type of events to discard.
|
||||
*/
|
||||
template<typename... Event>
|
||||
void discard() ENTT_NOEXCEPT {
|
||||
void discard() {
|
||||
if constexpr(sizeof...(Event) == 0) {
|
||||
std::for_each(pools.begin(), pools.end(), [](auto &&cpool) {
|
||||
cpool->clear();
|
||||
|
||||
@@ -275,7 +275,7 @@ public:
|
||||
* @tparam Event Type of event to reset.
|
||||
*/
|
||||
template<typename Event>
|
||||
void clear() ENTT_NOEXCEPT {
|
||||
void clear() {
|
||||
assure<Event>().clear();
|
||||
}
|
||||
|
||||
@@ -297,7 +297,7 @@ public:
|
||||
* @return True if there are no listeners registered, false otherwise.
|
||||
*/
|
||||
template<typename Event>
|
||||
bool empty() const ENTT_NOEXCEPT {
|
||||
bool empty() const {
|
||||
return assure<Event>().empty();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user