About this question
Easy · data_structures · Quant Developer interview question · bitwise, bit-manipulation, data-structures, c++, order-flags, low-latency, uint8
Packing boolean order attributes into a single byte is a ubiquitous optimization in HFT order-routing protocols. A uint8_t flags field shaves bytes off every outbound message, fits entirely in a register, and eliminates pointer indirection when checking execution constraints. Common flags like Immediate-Or-Cancel (IOC), Fill-Or-Kill (FOK), hidden (iceberg), and post-only map naturally to individual bits, allowing interrogation with a single AND instruction in the hot path. Task Implement the Or