1 #ifndef SIGNALS_SLOT_BASE_HPP
2 #define SIGNALS_SLOT_BASE_HPP
13 using Locked_container_t = std::vector<std::shared_ptr<void>>;
14 using Tracked_container_t = std::vector<std::weak_ptr<void>>;
29 std::begin(tracked_ptrs_), std::end(tracked_ptrs_),
30 [](
auto const& tracked) {
return tracked.expired(); });
37 auto lock() const -> Locked_container_t
39 auto locked_vec = Locked_container_t{};
40 for (
auto& tracked : tracked_ptrs_)
41 locked_vec.push_back(tracked.lock());
52 Tracked_container_t tracked_ptrs_;
56 #endif // SIGNALS_SLOT_BASE_HPP