diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-06 12:52:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-06 12:52:53 +0200 |
commit | cb9ea47e7825b5073d4d645afb94f6326cb7cf4d (patch) | |
tree | 201c215b08df918924153a60520046c294438a6b /cutl/meta/remove-p.hxx |
Start the libcutl repository
Diffstat (limited to 'cutl/meta/remove-p.hxx')
-rw-r--r-- | cutl/meta/remove-p.hxx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/cutl/meta/remove-p.hxx b/cutl/meta/remove-p.hxx new file mode 100644 index 0000000..56c4517 --- /dev/null +++ b/cutl/meta/remove-p.hxx @@ -0,0 +1,27 @@ +// file : cutl/meta/remove-p.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2009 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +#ifndef CUTL_META_REMOVE_P_HXX +#define CUTL_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 // CUTL_META_REMOVE_P_HXX |