cgv
Loading...
Searching...
No Matches
is_base_of.h
1
#pragma once
2
3
#include <type_traits>
4
#include <cgv/type/func/drop_const.h>
5
6
namespace
cgv
{
7
namespace
type {
8
namespace
cond {
9
11
template
<
typename
base_type,
typename
derived_type>
12
struct
is_base_of
13
{
14
static
const
bool
value =
15
std::is_base_of<typename func::drop_const<base_type>::type,
16
typename
func::drop_const<derived_type>::type
>::value;
17
};
18
19
}
20
}
21
}
cgv
the cgv namespace
Definition
print.h:11
cgv::type::cond::is_base_of
template condition returning, whether the first argument is a base class of the second argument
Definition
is_base_of.h:13
cgv::type::func::drop_const::type
T type
define value type
Definition
drop_const.h:12
cgv
type
cond
is_base_of.h
Generated by
1.9.8