24 template <
typename Observable,
typename Traits>
25 class ObserverCreatorContext;
28 template <
typename Observable>
31 typename std::remove_reference<Observable>::type::element_type;
33 static std::shared_ptr<const element_type>
get(Observable& observable) {
34 return observable.
get();
38 static void subscribe(Observable& observable, F&& callback) {
39 observable.subscribe(std::forward<F>(callback));
43 observable.unsubscribe();
47 template <
typename Observable,
typename Traits = ObservableTraits<Observable>>
50 using T =
typename Traits::element_type;
52 template <
typename...
Args>
static void unsubscribe(Observable &observable)
internal::ArgsMatcher< InnerMatcher > Args(const InnerMatcher &matcher)
—— Concurrent Priority Queue Implementation ——
typename Traits::element_type T
static std::shared_ptr< const element_type > get(Observable &observable)
std::shared_ptr< Context > context_
static void subscribe(Observable &observable, F &&callback)
typename std::remove_reference< Observable >::type::element_type element_type