cgv
Loading...
Searching...
No Matches
member_pointer.h
1#pragma once
2
3#include <cgv/type/invalid_type.h>
4
5namespace cgv {
6 namespace type {
7 namespace traits {
8
10 template <typename T>
12 {
13 static const bool is_member_pointer = false;
14 typedef invalid_type this_type;
15 typedef invalid_type member_type;
16 };
17
18 template <class T, typename M>
19 struct member_pointer<M T::*>
20 {
21 static const bool is_member_pointer = true;
22 typedef T this_type;
23 typedef M member_type;
24 };
25 }
26 }
27}
the cgv namespace
Definition print.h:11
traits class that allows to check for member pointer types and to query the type this_type of the cla...