24#ifndef MYSQL_SETS_BASE_VOLUME_H
25#define MYSQL_SETS_BASE_VOLUME_H
55template <
class Result_t =
double, Is_set Set1_t, Is_set Set2_t>
56 requires Is_compatible_set<Set1_t, Set2_t>
61 if (c1 < c2)
return -Result_t(c2 - c1);
62 return Result_t(c1 - c2);
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
Result_t volume_difference(const Set1_t &set1, const Set2_t &set2)
Return the volume of the first set minus the volume of the second set.
Definition: base_volume.h:57