Leka
A low-latency C++20 price-time-priority limit order book and matching engine
Replay viewer
Loading...
Searching...
No Matches
lob::OrderIdGenerator Class Reference

Generates monotonically increasing order identifiers. More...

#include <order_id_generator.hpp>

Public Member Functions

OrderId generate ()
 Returns the next valid order identifier or throws on exhaustion.

Detailed Description

Generates monotonically increasing order identifiers.

Definition at line 10 of file order_id_generator.hpp.

Member Function Documentation

◆ generate()

OrderId lob::OrderIdGenerator::generate ( )

Returns the next valid order identifier or throws on exhaustion.

Advances the generator without allowing identifiers to wrap to zero.

Definition at line 10 of file order_id_generator.cpp.


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