From cf8afaaac23cd81c5f7cd526bd5988951e9808bf Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Thu, 3 Mar 2022 17:31:28 +0000 Subject: GC cloneable --- .../src/vespa/vespalib/objects/cloneable.h | 28 ---------------------- 1 file changed, 28 deletions(-) delete mode 100644 staging_vespalib/src/vespa/vespalib/objects/cloneable.h (limited to 'staging_vespalib') 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 - -- cgit v1.2.3