Boost logo

Boost :

Subject: [boost] [mpl][docs]why use list?
From: Larry Evans (cppljevans_at_[hidden])
Date: 2009-03-21 12:31:00


Comparing the vector doc:

http://www.boost.org/doc/libs/1_38_0/libs/mpl/doc/refmanual/vector.html

which contains:

   supports constant-time insertion and removal of elements at both ends,
   and linear-time insertion and removal of elements in the middle.

with the list doc:

http://www.boost.org/doc/libs/1_38_0/libs/mpl/doc/refmanual/list.html

which contains:

   supports constant-time insertion and removal of elements at the
   beginning, and linear-time insertion and removal of elements at the
   end and in the middle.

shows these documents indicate no reason to prefer list over vector
but does indicate a reason to prefer vector over list.
Is there any reason to prefer list over of vector?

-regards,
Larry


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk