// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once namespace vespalib::datastore { class AtomicEntryRef; class EntryRef; } namespace search::attribute::atomic_utils { /* * Helper class to map from atomic value to non-atomic value, e.g. * from AtomicEntryRef to EntryRef. */ template class NonAtomicValue { public: using type = MaybeAtomicValue; }; template <> class NonAtomicValue { public: using type = vespalib::datastore::EntryRef; }; template using NonAtomicValue_t = typename NonAtomicValue::type; }