24#ifndef MYSQL_SETS_INTERVAL_PREDICATES_H
25#define MYSQL_SETS_INTERVAL_PREDICATES_H
41template <Is_bounded_set_traits Set_traits_t>
44 const typename Set_traits_t::Element_t &element) {
45 return Set_traits_t::ge(element,
interval.start()) &&
46 Set_traits_t::lt(element,
interval.exclusive_end());
53template <Is_bounded_set_traits Set_traits_t>
57 return Set_traits_t::ge(interval1.
start(), interval2.
start()) &&
64template <Is_bounded_set_traits Set_traits_t>
Holds the start boundary and endpoint boundary of an interval.
Definition: interval.h:178
constexpr const Element_t & exclusive_end() const
Return const reference to the exclusive endpoint of the interval.
Definition: interval.h:110
constexpr const Element_t & start() const
Return const reference to the starting point of the interval (inclusive).
Definition: interval.h:107
static int interval
Definition: mysqladmin.cc:72
Definition: gtid_set.h:183
constexpr bool is_subset(const Interval< Set_traits_t > &interval1, const Is_boundary_set_over_traits< Set_traits_t > auto &set2)
Return true if the left Interval is a subset of or equal to the right Boundary_set.
Definition: boundary_set_predicates.h:58
bool contains_element(const mysql::gtids::Is_gtid_set auto >id_set, const mysql::gtids::Is_gtid auto >id) noexcept
contains_element for Gtid_sets, accepting a Gtid for the element.
Definition: gtid_set.h:186
constexpr bool is_intersecting(const Interval< Set_traits_t > &interval, const Is_boundary_set_over_traits< Set_traits_t > auto &set)
Return true if the left Interval and the right Boundary set intersect (overlap).
Definition: boundary_set_predicates.h:121