Loading [MathJax]/extensions/tex2jax.js
Iros
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
Loading...
Searching...
No Matches
unwrap_reference.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace di::util {
6namespace detail {
8 template<typename T>
9 constexpr auto operator()(T& value) const -> T& {
10 return value;
11 }
12
13 template<typename T>
14 constexpr auto operator()(ReferenceWrapper<T> value) const -> T& {
15 return value.get();
16 }
17 };
18}
19
21}
22
23namespace di {
25}
Definition reference_wrapper.h:14
Definition clamp.h:9
Definition vocab.h:96
constexpr auto unwrap_reference
Definition unwrap_reference.h:20
Definition zstring_parser.h:9
Definition unwrap_reference.h:7
constexpr auto operator()(ReferenceWrapper< T > value) const -> T &
Definition unwrap_reference.h:14
constexpr auto operator()(T &value) const -> T &
Definition unwrap_reference.h:9