3-phase PV router
Loading...
Searching...
No Matches
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
9template< typename T >
10struct decay
11{
12 using type = T;
13};
14
15template< typename T >
16struct decay< T & > : decay< T >
17{
18};
19
20template< typename T >
21struct decay< T && > : decay< T >
22{
23};
24
25template< typename T >
26struct decay< T[] > : decay< T * >
27{
28};
29
30template< typename T, size_t N >
31struct decay< T[N] > : decay< T * >
32{
33};
34
35template< typename T >
36using decay_t = typename decay< T >::type;
typename decay< T >::type decay_t
Definition decay.hpp:36
T type
Definition decay.hpp:12