mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-20 00:20:47 +00:00
27 lines
756 B
C++
27 lines
756 B
C++
/*
|
|
* Copyright (C) 2021-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.1
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "gms/inet_address.hh"
|
|
#include "locator/host_id.hh"
|
|
#include "utils/small_vector.hh"
|
|
|
|
using inet_address_vector_replica_set = utils::small_vector<gms::inet_address, 3>;
|
|
|
|
using inet_address_vector_topology_change = utils::small_vector<gms::inet_address, 1>;
|
|
|
|
using host_id_vector_replica_set = utils::small_vector<locator::host_id, 3>;
|
|
|
|
using host_id_vector_topology_change = utils::small_vector<locator::host_id, 1>;
|
|
|
|
template <typename T>
|
|
concept HostIdVector =
|
|
std::same_as<std::remove_cvref_t<T>, host_id_vector_replica_set> ||
|
|
std::same_as<std::remove_cvref_t<T>, host_id_vector_topology_change>;
|