3-phase PV router
Loading...
Searching...
No Matches
function_traits.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
7template <typename Sig>
9
10template <typename ReturnType, typename Arg1>
11struct function_traits<ReturnType (*)(Arg1)> {
12 using return_type = ReturnType;
13 using arg1_type = Arg1;
14};
15
16template <typename ReturnType, typename Arg1, typename Arg2>
17struct function_traits<ReturnType (*)(Arg1, Arg2)> {
18 using return_type = ReturnType;
19 using arg1_type = Arg1;
20 using arg2_type = Arg2;
21};
22