Quant Interview Practice Questions
题目详情
In high-frequency trading systems, dynamically allocating memory on the heap can introduce unpredictable latency spikes that degrade execution speed. To ensure deterministic performance, quantitative developers often pre-allocate a continuous block of memory at startup and manually construct objects within this buffer using placement new. Task Implement a TradeBuffer class that manages a pre-allocated byte buffer capable of holding up to 100 Trade objects. You must implement the following metho