blob: 1433b30b085585803c812e81aca7d53b958b3b18 (
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
|
#ifndef INPUTXSLT_SRC_SUPPORT_TYPE_FILTER_H_
#define INPUTXSLT_SRC_SUPPORT_TYPE_FILTER_H_
#include <tuple>
#include <type_traits>
namespace InputXSLT {
template <
typename Base,
typename Head,
typename... Tail
>
struct filter_derived {
typedef typename std::conditional<
std::is_base_of<Base, Head>::value,
std::tuple<Head, Tail...>,
std::tuple<Tail...>
>::type type;
};
}
#endif // INPUTXSLT_SRC_SUPPORT_TYPE_FILTER_H_
|