24#ifndef MYSQL_SETS_INTERVAL_SET_VOLUME_H
25#define MYSQL_SETS_INTERVAL_SET_VOLUME_H
39template <Is_
interval_set Interval_set_t>
40 requires Is_metric_set_traits<typename Interval_set_t::Set_traits_t>
41[[nodiscard]]
constexpr auto volume(
const Interval_set_t &
set) {
42 using Set_traits_t = Interval_set_t::Set_traits_t;
43 using Diff_t =
typename Set_traits_t::Difference_t;
48 return std::make_unsigned_t<Diff_t>(
diff);
static Bigint * diff(Bigint *a, Bigint *b, Stack_alloc *alloc)
Definition: dtoa.cc:1081
static int interval
Definition: mysqladmin.cc:72
Definition: gtid_set.h:183
constexpr auto volume(const Boundary_set_t &set)
Return the sum of the lengths of all intervals in the given Boundary set.
Definition: boundary_set_volume.h:43
static mysql_service_status_t add(reference_caching_channel channel, const char *implementation_name) noexcept
Definition: component.cc:127
std::set< Key, Compare, ut::allocator< Key > > set
Specialization of set which uses ut_allocator.
Definition: ut0new.h:2888