signal: cleanup

This commit is contained in:
skypjack
2025-12-08 15:00:16 +01:00
parent 9e7a31cc74
commit 83dc6f4a97
3 changed files with 5 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ public:
signal.publish(events[pos]);
}
events.erase(events.cbegin(), events.cbegin() + static_cast<typename container_type::difference_type>(length));
events.erase(events.cbegin(), events.cbegin() + static_cast<container_type::difference_type>(length));
}
void disconnect(void *instance) override {
@@ -114,7 +114,7 @@ class basic_dispatcher {
using mapped_type = std::shared_ptr<internal::basic_dispatcher_handler>;
using alloc_traits = std::allocator_traits<Allocator>;
using container_allocator = typename alloc_traits::template rebind_alloc<std::pair<const key_type, mapped_type>>;
using container_allocator = alloc_traits::template rebind_alloc<std::pair<const key_type, mapped_type>>;
using container_type = dense_map<key_type, mapped_type, identity, std::equal_to<>, container_allocator>;
template<typename Type>

View File

@@ -38,7 +38,7 @@ class emitter {
using mapped_type = std::function<void(void *)>;
using alloc_traits = std::allocator_traits<Allocator>;
using container_allocator = typename alloc_traits::template rebind_alloc<std::pair<const key_type, mapped_type>>;
using container_allocator = alloc_traits::template rebind_alloc<std::pair<const key_type, mapped_type>>;
using container_type = dense_map<key_type, mapped_type, identity, std::equal_to<>, container_allocator>;
public:

View File

@@ -359,8 +359,8 @@ private:
template<typename Ret, typename... Args, typename Allocator>
class sink<sigh<Ret(Args...), Allocator>> {
using signal_type = sigh<Ret(Args...), Allocator>;
using delegate_type = typename signal_type::delegate_type;
using difference_type = typename signal_type::container_type::difference_type;
using delegate_type = signal_type::delegate_type;
using difference_type = signal_type::container_type::difference_type;
template<auto Candidate, typename Type>
static void release(Type value_or_instance, void *signal) {