opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
watchable_lifetime.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <concepts>
6
7namespace osc
8{
9 // satisfied if `T` is an object that can have its lifetime watched
10 template<typename T>
11 concept WatchableLifetime = requires(const T& lifetime)
12 {
13 { lifetime.watch() } -> std::convertible_to<LifetimeWatcher>;
14 };
15}
Definition watchable_lifetime.h:11
Definition custom_decoration_generator.h:5
constexpr U to(T &&value)
Definition conversion.h:56