Iros
 
Loading...
Searching...
No Matches
to_address.h
Go to the documentation of this file.
1#pragma once
2
3#include "di/meta/language.h"
4
5namespace di::util {
6namespace detail {
8 template<typename T>
10 constexpr auto operator()(T* pointer) const -> T* {
11 return pointer;
12 }
13
14 template<typename T>
15 requires(requires(T const& pointer) { pointer.operator->(); })
16 constexpr auto operator()(T const& pointer) const {
17 return (*this)(pointer.operator->());
18 }
19 };
20}
21
22constexpr inline auto to_address = detail::ToAddressFunction {};
23}
24
25namespace di {
27}
Definition language.h:64
Definition clamp.h:9
Definition vocab.h:96
constexpr auto to_address
Definition to_address.h:22
Definition zstring_parser.h:9
Definition to_address.h:7