Re: о бесполезных контейнерах (boost::array)
От: Vzhyk  
Дата: 13.03.13 08:42
Оценка:
On 13.03.2013 11:20, jyuyjiyuijyu wrote:

> не могу представить зачем может понадобиться boost::array ?

"The C++ Standard Template Library STL as part of the C++ Standard
Library provides a framework for processing algorithms on different kind
of containers. However, ordinary arrays don't provide the interface of
STL containers (although, they provide the iterator interface of STL
containers).

As replacement for ordinary arrays, the STL provides class std::vector.
However, std::vector<> provides the semantics of dynamic arrays. Thus,
it manages data to be able to change the number of elements. This
results in some overhead in case only arrays with static size are needed."
Posted via RSDN NNTP Server 2.1 beta
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.