/* simple example for using class array<> * * (C) Copyright Nicolai M. Josuttis 2001. * Permission to copy, use, modify, sell and distribute this software * is granted provided this copyright notice appears in all copies. * This software is provided "as is" without express or implied * warranty, and with no claim as to its suitability for any purpose. */ #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