Files
scylladb/raft/internal.hh
Benny Halevy f5f566bdd8 utils: add tagged_integer
A generic template for defining strongly typed
integer types.

Use it here to replace raft::internal::tagged_uint64.
Will be used for defining gms generation and version
as strong and distinguishable types in following patches.

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
2023-04-23 08:37:32 +03:00

22 lines
345 B
C++

/*
* Copyright (C) 2020-present ScyllaDB
*/
/*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#pragma once
#include <ostream>
#include <functional>
#include "utils/UUID.hh"
namespace raft {
namespace internal {
template<typename Tag>
using tagged_id = utils::tagged_uuid<Tag>;
} // end of namespace internal
} // end of namespace raft