summaryrefslogtreecommitdiffstats
path: root/staging_vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-03-03 17:31:28 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-03-03 17:31:28 +0000
commitcf8afaaac23cd81c5f7cd526bd5988951e9808bf (patch)
treeeed8d2fbf1af318087538561ac8854300abb43b8 /staging_vespalib
parent1e39e8da6b024f7b42037c03933f882a2aa9ef22 (diff)
GC cloneable
Diffstat (limited to 'staging_vespalib')
-rw-r--r--staging_vespalib/src/vespa/vespalib/objects/cloneable.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/objects/cloneable.h b/staging_vespalib/src/vespa/vespalib/objects/cloneable.h
deleted file mode 100644
index 0610f01155f..00000000000
--- a/staging_vespalib/src/vespa/vespalib/objects/cloneable.h
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-
-#pragma once
-
-/**
- * @class vespalib::Cloneable
- * @brief Superclass for objects implementing clone() deep copy.
- */
-
-namespace vespalib {
-
-class Cloneable {
-public:
- /**
- * @brief Creates a clone of this instance.
- *
- * Note that the caller takes ownership of the returned object. It
- * is not an unique_ptr since that would not support covariant
- * return types. A class T that inherits this interface should
- * define T* clone() const, such that people cloning a T object
- * don't need to cast it to get the correct type.
- */
- virtual Cloneable* clone() const = 0;
- virtual ~Cloneable() = default;
-};
-
-} // namespace vespalib
-