sl@0: /* simple example for using class array<> sl@0: * sl@0: * (C) Copyright Nicolai M. Josuttis 2001. sl@0: * Distributed under the Boost Software License, Version 1.0. (See sl@0: * accompanying file LICENSE_1_0.txt or copy at sl@0: * http://www.boost.org/LICENSE_1_0.txt) sl@0: * sl@0: * Changelog: sl@0: * 20 Jan 2001 - Removed boolalpha use since stock GCC doesn't support it sl@0: * (David Abrahams) sl@0: */ sl@0: /* sl@0: * © Portions copyright (c) 2006-2007 Nokia Corporation. All rights reserved. sl@0: */ sl@0: sl@0: #include sl@0: #include sl@0: sl@0: #ifdef __SYMBIAN32__ sl@0: #include "std_log_result.h" sl@0: #define LOG_FILENAME_LINE __FILE__, __LINE__ sl@0: #endif sl@0: sl@0: int main() sl@0: { sl@0: std_log(LOG_FILENAME_LINE,"[Test Case for array1]"); sl@0: // define special type name sl@0: typedef boost::array Array; sl@0: sl@0: // create and initialize an array sl@0: Array a = { { 42 } }; sl@0: sl@0: // access elements sl@0: for (unsigned i=1; i