signal: cleanup
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user