MFC库 - 向固定大小的CList添加元素

时间:2021-08-16 21:40:08

I'm using fixed-size CList and I was wondering what the implementation does when the list is full and I make a call to add another element. Does it fail to add? Does it replace the oldest element?

我正在使用固定大小的CList,我想知道当列表已满时实现会做什么,并且我调用添加另一个元素。它是否无法添加?它会取代最古老的元素吗?

1 个解决方案

#1


How are you making a fixed-size CList? I wasn't aware such a thing existed. Is it possible you've misunderstood something?

你是如何制作固定大小的CList的?我不知道存在这样的事情。你有可能误解了什么吗?

#1


How are you making a fixed-size CList? I wasn't aware such a thing existed. Is it possible you've misunderstood something?

你是如何制作固定大小的CList的?我不知道存在这样的事情。你有可能误解了什么吗?