3-phase PV router
Loading...
Searching...
No Matches
Mk2_3phase_RFdatalog_temp
type_traits
decay.hpp
Go to the documentation of this file.
1
// ArduinoJson - https://arduinojson.org
2
// Copyright © 2014-2024, Benoit BLANCHON
3
// MIT License
4
5
#pragma once
6
7
#include <stddef.h>
// size_t
8
9
template
<
typename
T>
10
struct
decay
{
11
using
type
= T;
12
};
13
14
template
<
typename
T>
15
struct
decay
<T&> :
decay<T>
{};
16
17
template
<
typename
T>
18
struct
decay
<T&&> :
decay<T>
{};
19
20
template
<
typename
T>
21
struct
decay
<T[]> :
decay
<T*> {};
22
23
template
<
typename
T,
size_t
N>
24
struct
decay
<T[N]> :
decay
<T*> {};
25
26
template
<
typename
T>
27
using
decay_t
=
typename
decay<T>::type
;
decay_t
typename decay< T >::type decay_t
Definition:
decay.hpp:27
decay
Definition:
decay.hpp:10
decay::type
T type
Definition:
decay.hpp:11
Generated by
1.9.6