Skip to content
Snippets Groups Projects
Commit ebf96678 authored by Sam Yates's avatar Sam Yates Committed by Ben Cumming
Browse files

Tidy `event_queue` event class requirements. (#202)

The requirements for event types for use in event_queue were restrictive and a bit 'special'.

  * Allow event times of any time which is well ordered by operator>.
  * Allow any event type with a public time member containing the time value.
  * Provide customization point event_time() via ADL for extracting the time value for event types that do not have a time member.
  * Simplify interface: push(begin, end) was only ever used in the unit test; add empty() const method.
  * Add unit test for more flexible functionality.
parent c83adfcf
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment