diff options
Diffstat (limited to 'libcutl/meta/remove-p.hxx')
-rw-r--r-- | libcutl/meta/remove-p.hxx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libcutl/meta/remove-p.hxx b/libcutl/meta/remove-p.hxx new file mode 100644 index 0000000..dc6a946 --- /dev/null +++ b/libcutl/meta/remove-p.hxx @@ -0,0 +1,25 @@ +// file : libcutl/meta/remove-p.hxx +// license : MIT; see accompanying LICENSE file + +#ifndef LIBCUTL_META_REMOVE_P_HXX +#define LIBCUTL_META_REMOVE_P_HXX + +namespace cutl +{ + namespace meta + { + template <typename X> + struct remove_p + { + typedef X r; + }; + + template <typename X> + struct remove_p<X*> + { + typedef X r; + }; + } +} + +#endif // LIBCUTL_META_REMOVE_P_HXX |