您的位置:首页 > 编程语言 > C语言/C++

Features of List in C++

2012-10-09 11:20 381 查看
Advantanges of List

Efficient insertion and removal of elements before any other specific element in the container (constant time).

Efficient moving elements and block of elements within the container or even between different containers (constant time).

Iterating over the elements in forward or reverse order (linear time).

Disadvantange of List

The main drawback of lists compared to these other sequence containers is that they lack direct access to the elements
by their position;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息