Quick Links:

bal | bbl | bdl | bsl

Component bslstl_array
[Package bslstl]

Provide an STL compliant array. More...

Outline
Purpose:
Provide an STL compliant array.
Classes:
bsl::array an STL compliant array
Canonical Header:
bsl_array.h
See also:
Component bslstl_vector
Description:
This component defines a single class template, bsl::array, implementing the standard container std::array, holding a non-resizable array of values of a template parameter type where the size is specified as the second template parameter.
An instantiation of array is a value-semantic type whose salient attributes are its size and the sequence of values the array contains. If array is instantiated with a value type that is not value-semantic, then the array will not retain all of its value-semantic qualities. In particular, if a value type cannot be tested for equality, then an array containing objects of that type will fail to compile the equality comparison operator. Similarly, if an array is instantiated with a type that does not have a copy-constructor, then the array will not be copyable.
An array meets most the requirements of a container with random access iterators in the C++ standard [array]. The array implemented here follows the C++11 standard when compiled with a C++11 compiler and follows the C++03 standard otherwise.