D++ (DPP)  10.0.30
C++ Discord API Bot Library
dpp::anonymous_namespace{queues.cpp}::compare_request Struct Reference

Comparator for sorting a request container. More...

Public Member Functions

bool operator() (const std::unique_ptr< http_request > &lhs, const std::unique_ptr< http_request > &rhs) const noexcept
 Less_than comparator for sorting. More...
 
bool operator() (const std::unique_ptr< http_request > &lhs, std::string_view rhs) const noexcept
 Less_than comparator for sorting. More...
 
bool operator() (std::string_view lhs, const std::unique_ptr< http_request > &rhs) const noexcept
 Less_than comparator for sorting. More...
 

Detailed Description

Comparator for sorting a request container.

Member Function Documentation

◆ operator()() [1/3]

bool dpp::anonymous_namespace{queues.cpp}::compare_request::operator() ( const std::unique_ptr< http_request > &  lhs,
const std::unique_ptr< http_request > &  rhs 
) const
inlinenoexcept

Less_than comparator for sorting.

Parameters
lhsLeft-hand side
rhsRight-hand side
Returns
Whether lhs comes before rhs in strict ordering

◆ operator()() [2/3]

bool dpp::anonymous_namespace{queues.cpp}::compare_request::operator() ( const std::unique_ptr< http_request > &  lhs,
std::string_view  rhs 
) const
inlinenoexcept

Less_than comparator for sorting.

Parameters
lhsLeft-hand side
rhsRight-hand side
Returns
Whether lhs comes before rhs in strict ordering

References dpp::request_queue::globally_ratelimited, and dpp::unicode_emoji::lock.

◆ operator()() [3/3]

bool dpp::anonymous_namespace{queues.cpp}::compare_request::operator() ( std::string_view  lhs,
const std::unique_ptr< http_request > &  rhs 
) const
inlinenoexcept

Less_than comparator for sorting.

Parameters
lhsLeft-hand side
rhsRight-hand side
Returns
Whether lhs comes before rhs in strict ordering

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