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 (c) 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
{
12
using
type
= T;
13
};
14
15
template
<
typename
T >
16
struct
decay
< T & > :
decay< T >
17
{
18
};
19
20
template
<
typename
T >
21
struct
decay
< T && > :
decay< T >
22
{
23
};
24
25
template
<
typename
T >
26
struct
decay
< T[] > :
decay
< T * >
27
{
28
};
29
30
template
<
typename
T,
size_t
N >
31
struct
decay
< T[N] > :
decay
< T * >
32
{
33
};
34
35
template
<
typename
T >
36
using
decay_t
=
typename
decay< T >::type
;
decay_t
typename decay< T >::type decay_t
Definition
decay.hpp:36
decay
Definition
decay.hpp:11
decay::type
T type
Definition
decay.hpp:12
Generated by
1.13.2