Async++ unknown
Async (co_await/co_return) code for C++
Loading...
Searching...
No Matches
asyncpp::RefCount Concept Reference

Concept describing a refcount policy for use with intrusive_refcount. More...

#include <asyncpp/ref.h>

Concept definition

template<typename T>
concept asyncpp::RefCount = requires() {
{ T{std::declval<size_t>()} };
{ std::declval<T&>().fetch_increment() } -> std::convertible_to<size_t>;
{ std::declval<T&>().fetch_decrement() } -> std::convertible_to<size_t>;
{ std::declval<const T&>().count() } -> std::convertible_to<size_t>;
}
Concept describing a refcount policy for use with intrusive_refcount.
Definition ref.h:17

Detailed Description

Concept describing a refcount policy for use with intrusive_refcount.