From 131263cbe350da4d7ecb12b35e66dcde8c05b38e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 23 Jan 2025 16:36:05 +0100 Subject: [PATCH] util/TagStructs: add struct AdoptTag --- src/util/TagStructs.hxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/util/TagStructs.hxx b/src/util/TagStructs.hxx index bf11e84b4..aa49db4d9 100644 --- a/src/util/TagStructs.hxx +++ b/src/util/TagStructs.hxx @@ -15,3 +15,10 @@ * duplicating the referenced objects). */ struct ShallowCopy {}; + +/** + * A tag that signals that the callee shall take ownership of the + * object that is being passed to it. Usually, that owned is an + * unmanaged reference and rvalues do not make sense. + */ +struct AdoptTag {};