MySQL 9.6.0
Source Code Documentation
mysql::sets::detail::Less< Impl_tp, Element_tp > Struct Template Reference

Helper class to define the Ordered_set_traits_interface::Less_t member. More...

#include <ordered_set_traits_interface.h>

Public Member Functions

constexpr bool operator() (const Element_tp &left, const Element_tp &right) const
 Return Impl_tp::lt(left, right). More...
 

Detailed Description

template<class Impl_tp, class Element_tp>
struct mysql::sets::detail::Less< Impl_tp, Element_tp >

Helper class to define the Ordered_set_traits_interface::Less_t member.

This can be used by standard algorithms/classes such as std::set/stdsort that need a function object to compare elements.

Template Parameters
Element_tpType of values.
Impl_tpSet traits implementation class.

Member Function Documentation

◆ operator()()

template<class Impl_tp , class Element_tp >
constexpr bool mysql::sets::detail::Less< Impl_tp, Element_tp >::operator() ( const Element_tp &  left,
const Element_tp &  right 
) const
inlineconstexpr

Return Impl_tp::lt(left, right).


The documentation for this struct was generated from the following file: