MySQL 9.1.0
Source Code Documentation
ACL_compare Class Reference

Class that compares ACL_ACCESS objects. More...

#include <sql_auth_cache.h>

Public Member Functions

bool operator() (const ACL_ACCESS &a, const ACL_ACCESS &b)
 Determine sort order of two user accounts. More...
 
bool operator() (const ACL_ACCESS *a, const ACL_ACCESS *b)
 

Detailed Description

Class that compares ACL_ACCESS objects.

Used in std::sort functions.

Member Function Documentation

◆ operator()() [1/2]

bool ACL_compare::operator() ( const ACL_ACCESS a,
const ACL_ACCESS b 
)

Determine sort order of two user accounts.

ACL_ACCESS with IP specified is sorted before host name.

Parameters
[in]aFirst object to compare.
[in]bSecond object to compare.
Return values
trueFirst element goes first.
falseSecond element goes first.

◆ operator()() [2/2]

bool ACL_compare::operator() ( const ACL_ACCESS a,
const ACL_ACCESS b 
)

The documentation for this class was generated from the following files: