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