summaryrefslogtreecommitdiff
path: root/libcutl/cutl/meta
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-03-06 10:24:11 +0100
committerJörg Frings-Fürst <debian@jff.email>2024-03-06 10:24:11 +0100
commit4538829ab86b5a1cd4e845e7eab165029c9d6d46 (patch)
treebbadf39aed0610c8f8f7b41fefff47773b8ac205 /libcutl/cutl/meta
parent23d41842168ac1a1580111b9c5c73500ceee3d57 (diff)
parentaad5ad9bf0c02aa4e79bc6b7d6c934612fff4026 (diff)
Update upstream source from tag 'upstream/4.2.0'
Update to upstream version '4.2.0' with Debian dir 1b38df7bbcf313223de3c50107ac0255090fe647
Diffstat (limited to 'libcutl/cutl/meta')
-rw-r--r--libcutl/cutl/meta/answer.hxx24
-rw-r--r--libcutl/cutl/meta/class-p.hxx27
-rw-r--r--libcutl/cutl/meta/polymorphic-p.hxx50
-rw-r--r--libcutl/cutl/meta/remove-c.hxx26
-rw-r--r--libcutl/cutl/meta/remove-cv.hxx23
-rw-r--r--libcutl/cutl/meta/remove-p.hxx26
-rw-r--r--libcutl/cutl/meta/remove-v.hxx26
7 files changed, 0 insertions, 202 deletions
diff --git a/libcutl/cutl/meta/answer.hxx b/libcutl/cutl/meta/answer.hxx
deleted file mode 100644
index 96a3911..0000000
--- a/libcutl/cutl/meta/answer.hxx
+++ /dev/null
@@ -1,24 +0,0 @@
-// file : cutl/meta/answer.hxx
-// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
-// license : MIT; see accompanying LICENSE file
-
-#ifndef CUTL_META_ANSWER_HXX
-#define CUTL_META_ANSWER_HXX
-
-namespace cutl
-{
- namespace meta
- {
- struct yes
- {
- char filling;
- };
-
- struct no
- {
- char filling[2];
- };
- }
-}
-
-#endif // CUTL_META_ANSWER_HXX
diff --git a/libcutl/cutl/meta/class-p.hxx b/libcutl/cutl/meta/class-p.hxx
deleted file mode 100644
index fec5a59..0000000
--- a/libcutl/cutl/meta/class-p.hxx
+++ /dev/null
@@ -1,27 +0,0 @@
-// file : cutl/meta/class-p.hxx
-// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
-// license : MIT; see accompanying LICENSE file
-
-#ifndef CUTL_META_CLASS_HXX
-#define CUTL_META_CLASS_HXX
-
-#include <cutl/meta/answer.hxx>
-
-namespace cutl
-{
- namespace meta
- {
- // g++ cannot have these inside class_p.
- //
- template <typename Y> no class_p_test (...);
- template <typename Y> yes class_p_test (void (Y::*) ());
-
- template <typename X>
- struct class_p
- {
- static bool const r = sizeof (class_p_test<X> (0)) == sizeof (yes);
- };
- }
-}
-
-#endif // CUTL_META_CLASS_HXX
diff --git a/libcutl/cutl/meta/polymorphic-p.hxx b/libcutl/cutl/meta/polymorphic-p.hxx
deleted file mode 100644
index dd820db..0000000
--- a/libcutl/cutl/meta/polymorphic-p.hxx
+++ /dev/null
@@ -1,50 +0,0 @@
-// file : cutl/meta/polymorphic-p.hxx
-// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
-// license : MIT; see accompanying LICENSE file
-
-#ifndef CUTL_META_POLYMORPHIC_HXX
-#define CUTL_META_POLYMORPHIC_HXX
-
-#include <cutl/meta/class-p.hxx>
-#include <cutl/meta/remove-cv.hxx>
-
-namespace cutl
-{
- namespace meta
- {
- template <typename CVX>
- struct polymorphic_p
- {
- typedef typename remove_cv<CVX>::r X;
-
- template <typename Y, bool C>
- struct impl
- {
- static const bool r = false;
- };
-
- template <typename Y>
- struct impl<Y, true>
- {
- struct t1: Y
- {
- t1 ();
- };
-
- struct t2: Y
- {
- t2 ();
-
- virtual
- ~t2 () throw ();
- };
-
- static const bool r = sizeof (t1) == sizeof (t2);
- };
-
- static const bool r = impl<X, class_p<X>::r>::r;
- };
- }
-}
-
-#endif // CUTL_META_POLYMORPHIC_HXX
diff --git a/libcutl/cutl/meta/remove-c.hxx b/libcutl/cutl/meta/remove-c.hxx
deleted file mode 100644
index 0f67488..0000000
--- a/libcutl/cutl/meta/remove-c.hxx
+++ /dev/null
@@ -1,26 +0,0 @@
-// file : cutl/meta/remove-c.hxx
-// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
-// license : MIT; see accompanying LICENSE file
-
-#ifndef CUTL_META_REMOVE_C_HXX
-#define CUTL_META_REMOVE_C_HXX
-
-namespace cutl
-{
- namespace meta
- {
- template <typename X>
- struct remove_c
- {
- typedef X r;
- };
-
- template <typename X>
- struct remove_c<X const>
- {
- typedef X r;
- };
- }
-}
-
-#endif // CUTL_META_REMOVE_C_HXX
diff --git a/libcutl/cutl/meta/remove-cv.hxx b/libcutl/cutl/meta/remove-cv.hxx
deleted file mode 100644
index 1d825da..0000000
--- a/libcutl/cutl/meta/remove-cv.hxx
+++ /dev/null
@@ -1,23 +0,0 @@
-// file : cutl/meta/remove-cv.hxx
-// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
-// license : MIT; see accompanying LICENSE file
-
-#ifndef CUTL_META_REMOVE_CV_HXX
-#define CUTL_META_REMOVE_CV_HXX
-
-#include <cutl/meta/remove-c.hxx>
-#include <cutl/meta/remove-v.hxx>
-
-namespace cutl
-{
- namespace meta
- {
- template <typename X>
- struct remove_cv
- {
- typedef typename remove_v<typename remove_c<X>::r>::r r;
- };
- }
-}
-
-#endif // CUTL_META_REMOVE_CV_HXX
diff --git a/libcutl/cutl/meta/remove-p.hxx b/libcutl/cutl/meta/remove-p.hxx
deleted file mode 100644
index f032dc2..0000000
--- a/libcutl/cutl/meta/remove-p.hxx
+++ /dev/null
@@ -1,26 +0,0 @@
-// file : cutl/meta/remove-p.hxx
-// copyright : Copyright (c) 2009-2013 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
diff --git a/libcutl/cutl/meta/remove-v.hxx b/libcutl/cutl/meta/remove-v.hxx
deleted file mode 100644
index ac05f28..0000000
--- a/libcutl/cutl/meta/remove-v.hxx
+++ /dev/null
@@ -1,26 +0,0 @@
-// file : cutl/meta/remove-v.hxx
-// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
-// license : MIT; see accompanying LICENSE file
-
-#ifndef CUTL_META_REMOVE_V_HXX
-#define CUTL_META_REMOVE_V_HXX
-
-namespace cutl
-{
- namespace meta
- {
- template <typename X>
- struct remove_v
- {
- typedef X r;
- };
-
- template <typename X>
- struct remove_v<X volatile>
- {
- typedef X r;
- };
- }
-}
-
-#endif // CUTL_META_REMOVE_V_HXX