summaryrefslogtreecommitdiff
path: root/libcult/cult/meta/remove-cv.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libcult/cult/meta/remove-cv.hxx')
-rw-r--r--libcult/cult/meta/remove-cv.hxx24
1 files changed, 24 insertions, 0 deletions
diff --git a/libcult/cult/meta/remove-cv.hxx b/libcult/cult/meta/remove-cv.hxx
new file mode 100644
index 0000000..190e393
--- /dev/null
+++ b/libcult/cult/meta/remove-cv.hxx
@@ -0,0 +1,24 @@
+// file : cult/meta/remove-cv.hxx
+// author : Boris Kolpackov <boris@kolpackov.net>
+// copyright : Copyright (c) 2005-2010 Boris Kolpackov
+// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
+
+#ifndef CULT_META_REMOVE_CV_HXX
+#define CULT_META_REMOVE_CV_HXX
+
+#include <cult/meta/remove-c.hxx>
+#include <cult/meta/remove-v.hxx>
+
+namespace Cult
+{
+ namespace Meta
+ {
+ template <typename X>
+ struct remove_cv
+ {
+ typedef typename remove_v<typename remove_c<X>::R>::R R;
+ };
+ }
+}
+
+#endif // CULT_META_REMOVE_CV_HXX