Board index » cppbuilder » -> any FIFO container I can shift and access components? <-
Steve JORDI
CBuilder Developer |
-> any FIFO container I can shift and access components? <-2005-02-20 02:14:29 AM cppbuilder14 Hi, I need a container for a FIFO array in which I can store data and that would shift left when inserting a new value at the end. Also I need to be able to access any stored item. An Insert( val ) would roll everything left A container[ itemIndex ] would return me the value I want. Is there any out of the box ready to use classes for this or should I handle and manage an array myself (using a pointer to the current "first" item, like a circular buffer) ? Thanks for any help. Sincerely, Steve JORDI (Remove the K_I_L_LSPAM from my email address) ------------------------------------------------ 1197 Prangins Email: XXXX@XXXXX.COM Switzerland WWW: www.sjordi.com ------------------------------------------------ Volcanoes at www.sjordi.com/volcanoes MovieDB at www.sjmoviedb.com ------------------------------------------------ |