24#ifndef MYSQL_UTILS_IS_SAME_OBJECT_H
25#define MYSQL_UTILS_IS_SAME_OBJECT_H
39template <
class Obj1_t,
class Obj2_t>
41 if constexpr (std::derived_from<Obj1_t, Obj2_t> ||
42 std::derived_from<Obj2_t, Obj1_t>) {
43 return &obj1 == &obj2;
Definition: gtid_format.h:47
bool is_same_object(const Obj1_t &obj1, const Obj2_t &obj2)
Return true if the types of the two objects are either equal or one derived from the other,...
Definition: is_same_object.h:40