/* simple example for using class array<> * * (C) Copyright Nicolai M. Josuttis 2001. * Distributed under the Boost Software License, Version 1.0. (See * accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * Changelog: * 20 Jan 2001 - Removed boolalpha use since stock GCC doesn't support it * (David Abrahams) */ #include #include int main() { // define special type name typedef boost::array Array; // create and initialize an array Array a = { { 42 } }; // access elements for (unsigned i=1; i