opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
liboscar
utilities
watchable_lifetime.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
liboscar/utilities/lifetime_watcher.h
>
4
5
#include <concepts>
6
7
namespace
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
}
osc::WatchableLifetime
Definition
watchable_lifetime.h:11
lifetime_watcher.h
osc
Definition
custom_decoration_generator.h:5
osc::Key::T
@ T
osc::to
constexpr U to(T &&value)
Definition
conversion.h:56
Generated by
1.9.8