blob: b6a33ceb1395172486881965b7e3a7b5c2663291 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include <type_traits>
template<
typename ... Args,
typename E = typename std::enable_if<(sizeof...(Args) >= 1), bool>::type
>
void fun1(Args&& ... args)
{
}
template<
typename ... Args,
typename E = typename std::enable_if<(sizeof...(Args) > 1), bool>::type
>
void fun2(Args&& ... args)
{
}
template<
typename ... Args,
typename E = typename std::enable_if<(sizeof...(Args) < 3), bool>::type
>
void fun3(Args&& ... args)
{
}
|