<p>Is it possible to create an STL-like container, or even just an STL-style iterator, for an existing array of POD-type elements?</p>

<p>For example, suppose I have an array of ints.  It would be convenient to be able to call some of the STL functions, such as find&#95;if, count&#95;if, or sort directly on this array.</p>

<p>Non-solution: copying the entire array, or even just references to the elements.  The goal is to be very memory- and time-saving while hopefully allowing use of other STL algorithms.</p>

You can use
Boost.Array
to create a C++ array type with STL semantics.
using arrays:
```
```
int a[100];
for (int i = 0; i < 100; ++i)
    a[i] = 0;
```
```
using boost.arrays:
```
```
boost::array<int,100> a;
for (boost::array<int,100>::iterator i = a.begin(); i != a.end(); ++i)
    *i = 0;
```
```
Update:
With C++11, you can now use
```
std::array
```
.