update ContentUnitIndices

This commit is contained in:
MihailRis 2025-12-15 22:05:27 +03:00
parent 55e4e6de02
commit c3c343ffdb
9 changed files with 38 additions and 26 deletions

View file

@ -22,9 +22,9 @@ ContentReport::ContentReport(
regionsVersion(regionsVersion) {
}
template <class T>
template <class T, typename IdType>
static constexpr size_t get_entries_count(
const ContentUnitIndices<T>& indices, const dv::value& list
const ContentUnitIndices<T, IdType>& indices, const dv::value& list
) {
return list != nullptr ? std::max(list.size(), indices.count())
: indices.count();