diff options
Diffstat (limited to 'staging_vespalib')
-rw-r--r-- | staging_vespalib/src/vespa/vespalib/objects/cloneable.h | 28 |
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 - |