opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
dereferences_to.h
Go to the documentation of this file.
1#pragma once
2
3#include <concepts>
4
5namespace osc
6{
7 // Satisfied if `T` dereferences to something that is convertible to `DerefType`.
8 template<typename T, typename DerefType>
9 concept DereferencesTo = requires(T ptr) {
10 {*ptr} -> std::convertible_to<DerefType>;
11 };
12}
Definition dereferences_to.h:9
Definition custom_decoration_generator.h:5
constexpr U to(T &&value)
Definition conversion.h:56