cppnet
C++ network utilities for asynchronous servers.
Loading...
Searching...
No Matches
Classes | Functions
net::timers::detail Namespace Reference

Internal timer implementation details. More...

Classes

struct  event
 The event structure. More...
 
struct  event_ref
 event_ref to be inserted into the priority queue. More...
 

Functions

auto operator<=> (const event_ref &lhs, const event_ref &rhs) -> std::strong_ordering
 The spaceship operator to determine event_ref ordering.
 
auto operator== (const event_ref &lhs, const event_ref &rhs) -> bool
 An equality operator to determine event_ref ordering.
 

Detailed Description

Internal timer implementation details.

Function Documentation

◆ operator<=>()

auto net::timers::detail::operator<=> ( const event_ref lhs,
const event_ref rhs 
) -> std::strong_ordering
inline

The spaceship operator to determine event_ref ordering.

Parameters
lhsThe left side of the comparison.
rhsThe right side of the comparison.
Returns
A strong_ordering of the event_ref's based on the expires_at property.

◆ operator==()

auto net::timers::detail::operator== ( const event_ref lhs,
const event_ref rhs 
) -> bool
inline

An equality operator to determine event_ref ordering.

Parameters
lhsThe left event_ref.
rhsThe right event_ref.
Returns
true if lhs expires at the same time as the rhs, false otherwise.