11 template <
typename TRepository>
15 using typename TRepository::ObserverType::ItemType;
18 : m_onItemAdded(std::move(onItemAdded))
19 , m_onItemRemoved(std::move(onItemRemoved))
24 void OnItemAdded(
const ItemType& item)
override
29 void OnItemRemoved(
const ItemType& item)
override
31 m_onItemRemoved(item);
35 std::function<void(const ItemType&)> m_onItemAdded;
36 std::function<void(const ItemType&)> m_onItemRemoved;