MySQL 8.0.39
Source Code Documentation
ACL_USER_compare Class Reference

Class that compares ACL_USER objects. More...

#include <sql_auth_cache.h>

Public Member Functions

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

Detailed Description

Class that compares ACL_USER objects.

Member Function Documentation

◆ operator()() [1/2]

bool ACL_USER_compare::operator() ( const ACL_USER a,
const ACL_USER b 
)

Determine sort order of two user accounts.

ACL_USER with IP specified is sorted before host name. Non anonymous user is sorted before anonymous user, when properties of both are equal.

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_USER_compare::operator() ( const ACL_USER a,
const ACL_USER b 
)

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