ReactivePlusPlus
One more implementation of ReactiveX approach in C++ with care about performance and templates in mind
 
Loading...
Searching...
No Matches
constraints.hpp
1// ReactivePlusPlus library
2//
3// Copyright Aleksey Loginov 2022 - present.
4// Distributed under the Boost Software License, Version 1.0.
5// (See accompanying file LICENSE_1_0.txt or copy at
6// https://www.boost.org/LICENSE_1_0.txt)
7//
8// Project home: https://github.com/victimsnino/ReactivePlusPlus
9
10#pragma once
11
12#include <rpp/utils/constraints.hpp>
13
14#include <rpp/subscriptions/fwd.hpp>
15
16#include <concepts>
17
18namespace rpp::constraint
19{
20template<typename T>
21concept subscription = std::derived_from<T, subscription_base> || decayed_same_as<T, subscription_base>;
22} // namespace rpp::constraint
Definition: constraints.hpp:21