Iros
 
Loading...
Searching...
No Matches
get.h
Go to the documentation of this file.
1#pragma once
2
3#include "di/util/forward.h"
5
6namespace di::util {
7template<types::size_t index, typename T>
8constexpr auto get(T&& value) -> decltype(auto) {
9 return util::get_in_place(c_<index>, util::forward<T>(value));
10}
11
12template<typename Type, typename T>
13constexpr auto get(T&& value) -> decltype(auto) {
14 return util::get_in_place(types::in_place_type<Type>, util::forward<T>(value));
15}
16}
17
18namespace di {
19using util::get;
20}
constexpr auto in_place_type
Definition in_place_type.h:12
Definition vocab.h:96
constexpr auto get(T &&value) -> decltype(auto)
Definition get.h:8
constexpr auto get_in_place
Definition get_in_place.h:23
Definition zstring_parser.h:9
constexpr auto c_
A value of type Constexpr<val>.
Definition constexpr.h:252