epoc32/include/stdapis/stlport/stl/_config.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/stdapis/stlport/stl/_config.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/stdapis/stlport/stl/_config.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,1157 @@
     1.4 -_config.h
     1.5 + /*
     1.6 + * © Portions copyright (c) 2006-2007 Nokia Corporation.  All rights reserved.
     1.7 + *
     1.8 + * Copyright (c) 1994
     1.9 + * Hewlett-Packard Company
    1.10 + *
    1.11 + * Copyright (c) 1996,1997
    1.12 + * Silicon Graphics Computer Systems, Inc.
    1.13 + *
    1.14 + * Copyright (c) 1997
    1.15 + * Moscow Center for SPARC Technology
    1.16 + *
    1.17 + * Copyright (c) 1999 
    1.18 + * Boris Fomitchev
    1.19 + *
    1.20 + * This material is provided "as is", with absolutely no warranty expressed
    1.21 + * or implied. Any use is at your own risk.
    1.22 + *
    1.23 + * Permission to use or copy this software for any purpose is hereby granted 
    1.24 + * without fee, provided the above notices are retained on all copies.
    1.25 + * Permission to modify the code and to distribute modified code is granted,
    1.26 + * provided the above notices are retained, and a notice that the code was
    1.27 + * modified is included with the above copyright notice.
    1.28 + *
    1.29 + */
    1.30 +
    1.31 +#ifndef _STLP_CONFIG_H
    1.32 +# define _STLP_CONFIG_H
    1.33 +
    1.34 +/*
    1.35 + * Purpose of this file :
    1.36 + *
    1.37 + * Defines all STLport settings.
    1.38 + * This file is actually a wrapper : it includes compiler-specific
    1.39 + * settings from <config/stlcomp.h>
    1.40 + * and user-defined settings from <stl_user_config.h>.
    1.41 + * See <config/stl_mycomp.h> and <stl_user_config.h> for the description
    1.42 + * of those macros
    1.43 + * 
    1.44 + */
    1.45 +
    1.46 +/* Other macros defined by this file:
    1.47 +
    1.48 + * bool, true, and false, if _STLP_NO_BOOL is defined.
    1.49 + * typename, as a null macro if it's not already a keyword.
    1.50 + * explicit, as a null macro if it's not already a keyword.
    1.51 + * namespace-related macros (_STLP_STD, _STLP_BEGIN_NAMESPACE, etc.)
    1.52 + * exception-related macros (_STLP_TRY, _STLP_UNWIND, etc.)
    1.53 + * _STLP_ASSERT, either as a test or as a null macro, depending on
    1.54 +   whether or not _STLP_ASSERTIONS is defined.
    1.55 +*/
    1.56 +
    1.57 +/* The last SGI STL release we merged with */
    1.58 +#   define __SGI_STL                                      0x330
    1.59 +
    1.60 +/* STLport version */
    1.61 +#   define _STLPORT_VERSION                               0x463
    1.62 +
    1.63 +/* Placeholder for user to override settings.
    1.64 + * It could be also used to mask settings from 
    1.65 + * different directories.
    1.66 + */
    1.67 +# include <stl_user_config.h>
    1.68 +
    1.69 +/* ========================================================= */
    1.70 +/* This file is used for compatibility; it accepts old-style config
    1.71 +   switches */
    1.72 +#  include <stl/_config_compat.h>
    1.73 +
    1.74 +/* Common configuration file for this particular installation. */
    1.75 +
    1.76 +# include <stl/_site_config.h>
    1.77 +
    1.78 +/* Use per-version compiler recognition */
    1.79 +#  include <config/stlcomp.h>
    1.80 +
    1.81 +/* ========================================================= */
    1.82 +
    1.83 +/* some fixes to configuration. This also includes modifications
    1.84 + * of STLport switches depending on compiler flags,
    1.85 + * or settings applicable to a group of compilers, such as
    1.86 + * to all who use EDG front-end.
    1.87 + */
    1.88 +# include <config/stl_confix.h>
    1.89 +
    1.90 +
    1.91 +/*
    1.92 + * Performs integrity check on user-specified parameters
    1.93 + * and site-specific settings.
    1.94 + */
    1.95 +// # include <stl/_check_config.h>
    1.96 +
    1.97 +/* SGI terms */
    1.98 +
    1.99 +# if !defined (_STLP_NO_MEMBER_TEMPLATES) && !defined (_STLP_MEMBER_TEMPLATES)
   1.100 +#  define _STLP_MEMBER_TEMPLATES 1
   1.101 +# endif
   1.102 +
   1.103 +# if !defined (_STLP_NO_FRIEND_TEMPLATES) && !defined (_STLP_FRIEND_TEMPLATES)
   1.104 +#  define _STLP_FRIEND_TEMPLATES 1
   1.105 +# endif
   1.106 +
   1.107 +# if !defined (_STLP_NO_MEMBER_TEMPLATE_CLASSES) && !defined (_STLP_MEMBER_TEMPLATE_CLASSES)
   1.108 +#  define _STLP_MEMBER_TEMPLATE_CLASSES 1
   1.109 +# endif
   1.110 +
   1.111 +# if !defined (_STLP_NO_MEMBER_TEMPLATE_CLASSES) && !defined (_STLP_DONT_USE_NESTED_TCLASS_THROUGHT_TPARAM) && !defined (_STLP_USE_NESTED_TCLASS_THROUGHT_TPARAM)
   1.112 +#  define _STLP_USE_NESTED_TCLASS_THROUGHT_TPARAM 1
   1.113 +# endif
   1.114 +
   1.115 +#if !defined (_STLP_NO_CLASS_PARTIAL_SPECIALIZATION) && !defined (_STLP_CLASS_PARTIAL_SPECIALIZATION)
   1.116 +#  define _STLP_CLASS_PARTIAL_SPECIALIZATION 1
   1.117 +#endif
   1.118 +
   1.119 +#if !defined (_STLP_FUNCTION_TMPL_PARTIAL_ORDER) && !defined (_STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER)
   1.120 +#  define _STLP_FUNCTION_TMPL_PARTIAL_ORDER 1
   1.121 +#endif
   1.122 +
   1.123 +# if !defined (_STLP_BIG_ENDIAN) && ! defined (_STLP_LITTLE_ENDIAN)
   1.124 +#  if defined(_MIPSEB) || defined (__sparc) || \
   1.125 +      defined (_AIX) || defined (__hpux) || defined(macintosh) || defined (_MAC)
   1.126 +#   define _STLP_BIG_ENDIAN 1
   1.127 +#  elif defined(__i386) || defined(_M_IX86) 
   1.128 +#   define _STLP_LITTLE_ENDIAN 1
   1.129 +#  else
   1.130 +#   define _STLP_UNKNOWN_ENDIAN 1
   1.131 +#  endif
   1.132 +# endif /* _STLP_BIG_ENDIAN */
   1.133 +
   1.134 +/* ==========================================================
   1.135 + * final workaround tuning based on given flags
   1.136 + * ========================================================== */
   1.137 +
   1.138 +#ifndef _STLP_UINT32_T
   1.139 +# define _STLP_UINT32_T unsigned long
   1.140 +#endif
   1.141 +#ifndef _STLP_ABORT
   1.142 +# define _STLP_ABORT() abort()
   1.143 +#endif
   1.144 +
   1.145 +# if !defined (_STLP_HAS_NO_NAMESPACES)
   1.146 +# if defined _STLP_NO_NAMESPACES
   1.147 +#  undef _STLP_USE_NAMESPACES
   1.148 +# else
   1.149 +/* assume it as the default, turn it off later if NO_NAMESPACES selected */
   1.150 +#  undef _STLP_USE_NAMESPACES
   1.151 +#  define _STLP_USE_NAMESPACES 1
   1.152 +# endif
   1.153 +# endif
   1.154 +/*
   1.155 +# if defined (_STLP_NO_IOSTREAMS)
   1.156 +#  define _STLP_USE_NO_IOSTREAMS
   1.157 +# endif
   1.158 +
   1.159 +# if defined (_STLP_USE_NO_IOSTREAMS)
   1.160 +#  undef _STLP_USE_NEW_IOSTREAMS
   1.161 +# endif
   1.162 +
   1.163 +# if ( defined (_STLP_OWN_IOSTREAMS) || ! defined (_STLP_HAS_NO_NEW_IOSTREAMS)) \
   1.164 +   && ! defined (_STLP_USE_NO_IOSTREAMS) && !defined (_STLP_USE_NEW_IOSTREAMS)
   1.165 +#  define _STLP_USE_NEW_IOSTREAMS
   1.166 +# endif
   1.167 +
   1.168 +# if defined (_STLP_NO_NEW_IOSTREAMS)
   1.169 +#  undef _STLP_USE_NEW_IOSTREAMS
   1.170 +#  undef _STLP_OWN_IOSTREAMS
   1.171 +# endif
   1.172 +*/
   1.173 +/* Operating system recognition (basic) */
   1.174 +# if defined (__unix) || defined (__linux__) || defined (__QNX__) || defined (_AIX)  || defined (__NetBSD__) || defined (__Lynx__) || defined (__SYMBIAN32__)
   1.175 +#  define _STLP_UNIX 1
   1.176 +#  if defined (__linux__) && ! defined (_STLP_USE_GLIBC)
   1.177 +#   define _STLP_USE_GLIBC 1
   1.178 +#  endif
   1.179 +# elif defined(macintosh) || defined (_MAC)
   1.180 +#  define _STLP_MAC  1
   1.181 +# elif defined (_WIN32) || defined (__WIN32) || defined (WIN32) || defined (__WIN32__) && !defined (__SYMBIAN32__)
   1.182 +#  define _STLP_WIN32 1
   1.183 +# elif defined (__WIN16) || defined (WIN16) || defined (_WIN16)
   1.184 +#  define _STLP_WIN16
   1.185 +# endif /* __unix */
   1.186 +
   1.187 +# if !defined(_STLP_MAKE_HEADER)
   1.188 +#  define _STLP_MAKE_HEADER(path, header) <path/header>
   1.189 +# endif
   1.190 +#if !defined (_STLP_NATIVE_HEADER)
   1.191 +# if !defined (_STLP_NATIVE_INCLUDE_PATH)
   1.192 +#ifdef __SYMBIAN32__
   1.193 +#  define _STLP_NATIVE_INCLUDE_PATH .
   1.194 +#else
   1.195 +#  define _STLP_NATIVE_INCLUDE_PATH ../include
   1.196 +#endif
   1.197 +# endif
   1.198 +# define _STLP_NATIVE_HEADER(header) _STLP_MAKE_HEADER(_STLP_NATIVE_INCLUDE_PATH,header)
   1.199 +#endif
   1.200 +/* For some compilers, C headers like <stdio.h> are located in separate directory */
   1.201 +#if !defined (_STLP_NATIVE_C_HEADER)
   1.202 +# if !defined (_STLP_NATIVE_C_INCLUDE_PATH)
   1.203 +#  define _STLP_NATIVE_C_INCLUDE_PATH _STLP_NATIVE_INCLUDE_PATH
   1.204 +# endif
   1.205 +# define _STLP_NATIVE_C_HEADER(header)  _STLP_MAKE_HEADER(_STLP_NATIVE_C_INCLUDE_PATH,header)
   1.206 +#endif
   1.207 +
   1.208 +/* For some compilers, C-library headers like <cstdio> are located in separate directory */
   1.209 +#if !defined (_STLP_NATIVE_CPP_C_HEADER)
   1.210 +# if !defined (_STLP_NATIVE_CPP_C_INCLUDE_PATH)
   1.211 +#  define _STLP_NATIVE_CPP_C_INCLUDE_PATH _STLP_NATIVE_INCLUDE_PATH
   1.212 +# endif
   1.213 +# define _STLP_NATIVE_CPP_C_HEADER(header)  _STLP_MAKE_HEADER(_STLP_NATIVE_CPP_C_INCLUDE_PATH,header)
   1.214 +#endif
   1.215 +
   1.216 +/* Some compilers have weird placement of old-style iostream headers */
   1.217 +#if !defined ( _STLP_NATIVE_OLD_STREAMS_HEADER )
   1.218 +# if !defined (_STLP_NATIVE_OLD_STREAMS_INCLUDE_PATH)
   1.219 +#  define _STLP_NATIVE_OLD_STREAMS_INCLUDE_PATH _STLP_NATIVE_INCLUDE_PATH
   1.220 +# endif
   1.221 +# define _STLP_NATIVE_OLD_STREAMS_HEADER(header)  _STLP_MAKE_HEADER(_STLP_NATIVE_OLD_STREAMS_INCLUDE_PATH,header)
   1.222 +#endif
   1.223 +
   1.224 +/* Some compilers locate basic C++ runtime support headers (<new>, <typeinfo>, <exception>) in separate directory */
   1.225 +#if !defined ( _STLP_NATIVE_CPP_RUNTIME_HEADER )
   1.226 +# if !defined (_STLP_NATIVE_CPP_RUNTIME_INCLUDE_PATH)
   1.227 +#  define _STLP_NATIVE_CPP_RUNTIME_INCLUDE_PATH _STLP_NATIVE_INCLUDE_PATH
   1.228 +# endif
   1.229 +# define _STLP_NATIVE_CPP_RUNTIME_HEADER(header)  _STLP_MAKE_HEADER(_STLP_NATIVE_CPP_RUNTIME_INCLUDE_PATH,header)
   1.230 +#endif
   1.231 +
   1.232 +/*  shared library tune-up */
   1.233 +
   1.234 +#if defined (__BUILDING_STLPORT)
   1.235 +/*  if we are rebuilding right now as a DLL, place everything here */
   1.236 +#  undef  _STLP_DESIGNATED_DLL
   1.237 +#  define _STLP_DESIGNATED_DLL 1
   1.238 +#endif
   1.239 +
   1.240 +/* Use own namespace always if possible and not explicitly instructed otherwise */
   1.241 +# if defined (_STLP_USE_NAMESPACES) && !defined (_STLP_BROKEN_USING_DIRECTIVE) && \
   1.242 +     /* !defined (_STLP_OWN_IOSTREAMS) && */ !defined(_STLP_NO_OWN_NAMESPACE)
   1.243 +#  undef  _STLP_USE_OWN_NAMESPACE
   1.244 +#  define _STLP_USE_OWN_NAMESPACE  1
   1.245 +# else
   1.246 +#  undef _STLP_WHOLE_NATIVE_STD
   1.247 +# endif
   1.248 +
   1.249 +#  undef _STLP_NAMESPACE
   1.250 +
   1.251 +# if !defined(_NOTHREADS) && ! defined (_STLP_THREADS_DEFINED)
   1.252 +
   1.253 +#  ifndef _REENTRANT
   1.254 +#     define _REENTRANT
   1.255 +#  endif
   1.256 +
   1.257 +#  if defined(_PTHREADS)
   1.258 +#     define _STLP_PTHREADS
   1.259 +#     define _STLP_THREADS
   1.260 +#  endif
   1.261 +#  if defined(_UITHREADS)
   1.262 +#     define _STLP_UITHREADS
   1.263 +#     define _STLP_THREADS
   1.264 +#  endif
   1.265 +
   1.266 +#   if defined (__sgi) && ! defined (__KCC) && ! defined (__GNUC__)  
   1.267 +#    define _STLP_SGI_THREADS
   1.268 +#   elif defined(__DECC) || defined(__DECCXX)
   1.269 +#    define _STLP_DEC_THREADS
   1.270 +#   elif defined (_STLP_WIN32) && ! defined (_STLP_PTHREADS) && ! defined (__WINS__)
   1.271 +#    define _STLP_WIN32THREADS 1
   1.272 +#   elif ((defined (__sun) && !defined (__linux__)) \
   1.273 +     || defined(_UITHREADS) ) && !defined(_STLP_PTHREADS)
   1.274 +#     define _STLP_UITHREADS
   1.275 +#   elif defined (__OS2__)
   1.276 +#     define _STLP_OS2THREADS
   1.277 +#   elif defined(__BEOS__)
   1.278 +#     define _STLP_BETHREADS
   1.279 +#   else
   1.280 +#     define _STLP_PTHREADS
   1.281 +#   endif /* __sgi */
   1.282 +#   define _STLP_THREADS_DEFINED
   1.283 +# endif
   1.284 +
   1.285 +#  if defined (_REENTRANT) && ! defined (_STLP_THREADS)
   1.286 +#   define _STLP_THREADS
   1.287 +#  endif /* _REENTRANT */
   1.288 +
   1.289 +// warning : pthread_spinlock code was reported not to work on RedHat 3
   1.290 +# if defined(__linux__) && defined(_STLP_USE_PTHREAD_SPINLOCK)
   1.291 +#  include <features.h>
   1.292 +#  ifndef __USE_XOPEN2K
   1.293 +#   undef _STLP_USE_PTHREAD_SPINLOCK
   1.294 +#  endif /* __USE_XOPEN2K */
   1.295 +# endif /* __linux__ && _STLP_PTHREADS */
   1.296 +
   1.297 +# ifndef _STLP_STATIC_MUTEX
   1.298 +#  define _STLP_STATIC_MUTEX _STLP_mutex_base
   1.299 +# endif
   1.300 +
   1.301 +
   1.302 +# if defined (_MFC_VER) && !defined (_STLP_USE_MFC)
   1.303 +#  define _STLP_USE_MFC 1
   1.304 +# endif
   1.305 +
   1.306 +#if defined (_STLP_THREADS)
   1.307 +#   define _STLP_VOLATILE volatile
   1.308 +/* windows.h _MUST be included before bool definition ;( */
   1.309 +# if defined  (_STLP_WIN32THREADS) && defined (_STLP_NO_BOOL)
   1.310 +#   undef  NOMINMAX
   1.311 +#   define NOMINMAX
   1.312 +#   ifdef _STLP_USE_MFC
   1.313 +#    include <afx.h>
   1.314 +#   else
   1.315 +#    include <windows.h>
   1.316 +#   endif
   1.317 +#   define _STLP_WINDOWS_H_INCLUDED
   1.318 +# endif
   1.319 +#else
   1.320 +#   define _STLP_VOLATILE
   1.321 +#endif
   1.322 +
   1.323 +# if !defined ( _STLP_USE_NEW_C_HEADERS ) && !defined ( _STLP_HAS_NO_NEW_C_HEADERS )
   1.324 +#  define _STLP_USE_NEW_C_HEADERS
   1.325 +# endif
   1.326 +/* disable new-style headers if requested */
   1.327 +# if defined ( _STLP_NO_NEW_C_HEADERS )
   1.328 +#  undef _STLP_USE_NEW_C_HEADERS
   1.329 +# endif
   1.330 +
   1.331 +# if !defined ( _STLP_STATIC_TEMPLATE_DATA )
   1.332 +# define _STLP_STATIC_TEMPLATE_DATA 1
   1.333 +# endif
   1.334 +
   1.335 +# if defined (_STLP_BASE_TYPEDEF_BUG)
   1.336 +#  undef  _STLP_BASE_TYPEDEF_OUTSIDE_BUG
   1.337 +#  define _STLP_BASE_TYPEDEF_OUTSIDE_BUG 1
   1.338 +# endif
   1.339 +
   1.340 +# if defined ( _STLP_NESTED_TYPE_PARAM_BUG ) || (defined (_STLP_MSVC) && (_STLP_MSVC < 1100))
   1.341 +#  define _STLP_GLOBAL_NESTED_RETURN_TYPE_PARAM_BUG
   1.342 +# endif
   1.343 +
   1.344 +/* SUNpro 4.2 inline string literal bug */
   1.345 +#ifdef _STLP_INLINE_STRING_LITERAL_BUG
   1.346 +# define _STLP_FIX_LITERAL_BUG(__x) __x=__x;
   1.347 +#else
   1.348 +# define _STLP_FIX_LITERAL_BUG(__x)
   1.349 +#endif
   1.350 +
   1.351 +# if defined (_STLP_NON_TYPE_TMPL_PARAM_BUG)
   1.352 +#  undef  _STLP_NO_DEFAULT_NON_TYPE_PARAM
   1.353 +#  define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
   1.354 +# endif
   1.355 +
   1.356 +# ifdef _STLP_DEBUG
   1.357 +#  define _STLP_ASSERTIONS 1
   1.358 +# endif
   1.359 +
   1.360 +/* apple mpw exception handling bug */
   1.361 +#ifndef _STLP_MPWFIX_TRY
   1.362 +# define _STLP_MPWFIX_TRY
   1.363 +#endif
   1.364 +#ifndef _STLP_MPWFIX_CATCH
   1.365 +# define _STLP_MPWFIX_CATCH
   1.366 +#endif
   1.367 +#ifndef _STLP_MPWFIX_CATCH_ACTION
   1.368 +# define _STLP_MPWFIX_CATCH_ACTION(action)
   1.369 +#endif
   1.370 +
   1.371 +/* if _STLP_DEBUG or _STLP_ASSERTIONS are set, stl/debug/_debug.h defines those */
   1.372 +
   1.373 +# if !defined( _STLP_ASSERTIONS ) && !defined(_STLP_DEBUG) && !defined(_STLP_DEBUG_ALLOC)
   1.374 +#  define _STLP_ASSERT(expr)
   1.375 +# endif
   1.376 +
   1.377 +# ifndef _STLP_DEBUG
   1.378 +#  define _STLP_VERBOSE_ASSERT(expr,diagnostic)
   1.379 +#  define _STLP_DEBUG_CHECK(expr)
   1.380 +#  define _STLP_DEBUG_DO(expr)
   1.381 +# endif
   1.382 +
   1.383 +#  if !defined (_STLP_WEAK)
   1.384 +#   define _STLP_WEAK 
   1.385 +#  endif
   1.386 +
   1.387 +/* default parameters as template types derived from arguments ( not always supported ) */
   1.388 +#  if defined (_STLP_LIMITED_DEFAULT_TEMPLATES)
   1.389 +#   define __DFL_TMPL_PARAM( classname, defval ) class classname
   1.390 +#   define __DFL_TMPL_ARG(classname) , classname
   1.391 +#  else
   1.392 +#   define _STLP_DEFAULT_TYPE_PARAM 1
   1.393 +#   define __DFL_TMPL_PARAM( classname, defval ) class classname = defval
   1.394 +#   define __DFL_TMPL_ARG(classname)  
   1.395 +#  endif
   1.396 +
   1.397 +/* default parameters as complete types */
   1.398 +# if defined ( _STLP_DEFAULT_TYPE_PARAM )
   1.399 +#   define __DFL_TYPE_PARAM( classname, defval ) class classname = defval
   1.400 +#   define __DFL_NON_TYPE_PARAM(type,name,val) type name = val
   1.401 +#   define __DFL_TYPE_ARG(classname)
   1.402 +# else
   1.403 +#   define __DFL_TYPE_PARAM( classname, defval ) class classname
   1.404 +#   define __DFL_NON_TYPE_PARAM(type,name,val) type name
   1.405 +#   define __DFL_TYPE_ARG(classname) , classname
   1.406 +# endif
   1.407 +
   1.408 +/* SGI compatibility */
   1.409 +
   1.410 +#ifdef _STLP_NO_WCHAR_T
   1.411 +# ifndef _STLP_NO_NATIVE_WIDE_STREAMS
   1.412 +#  define  _STLP_NO_NATIVE_WIDE_STREAMS 1
   1.413 +# endif
   1.414 +#else
   1.415 +# define _STLP_HAS_WCHAR_T 1
   1.416 +#endif
   1.417 +
   1.418 +#if !defined (_STLP_NO_AT_MEMBER_FUNCTION)
   1.419 +# define _STLP_CAN_THROW_RANGE_ERRORS 1
   1.420 +#endif
   1.421 +
   1.422 +# if !defined (_STLP_USE_RAW_SGI_ALLOCATORS)
   1.423 +#   define _STLP_DEFAULT_ALLOCATOR(_Tp) allocator< _Tp >
   1.424 +#   define _STLP_DEFAULT_ALLOCATOR_SELECT( _Tp ) __DFL_TMPL_PARAM(_Alloc, allocator< _Tp >)
   1.425 +#   define _STLP_DEFAULT_PAIR_ALLOCATOR(_Key, _Tp) allocator< pair < _Key, _Tp > >
   1.426 +#   if defined (_STLP_LIMITED_DEFAULT_TEMPLATES)
   1.427 +#     define _STLP_DEFAULT_PAIR_ALLOCATOR_SELECT(_Key, _Tp ) class _Alloc
   1.428 +#     define _STLP_USE_WRAPPER_FOR_ALLOC_PARAM 1
   1.429 +#   else
   1.430 +#     define _STLP_DEFAULT_PAIR_ALLOCATOR_SELECT(_Key, _Tp ) \
   1.431 +             class _Alloc = allocator< pair < _Key, _Tp > >
   1.432 +#   endif
   1.433 +# else
   1.434 +#   define _STLP_DEFAULT_ALLOCATOR( _Tp ) __sgi_alloc
   1.435 +#   define _STLP_DEFAULT_ALLOCATOR_SELECT( _Tp ) __DFL_TYPE_PARAM(_Alloc,__sgi_alloc)
   1.436 +#   define _STLP_DEFAULT_PAIR_ALLOCATOR( _Key, _Tp ) __sgi_alloc
   1.437 +#   define _STLP_DEFAULT_PAIR_ALLOCATOR_SELECT(_Key, _Tp ) __DFL_TYPE_PARAM(_Alloc,__sgi_alloc)
   1.438 +#   if defined (_STLP_LIMITED_DEFAULT_TEMPLATES) && !defined (_STLP_DEFAULT_TYPE_PARAM)
   1.439 +#    define _STLP_USE_WRAPPER_FOR_ALLOC_PARAM 1
   1.440 +#   endif
   1.441 +# endif
   1.442 +
   1.443 +/* default parameters workaround tuning */
   1.444 +#  if defined ( _STLP_USE_WRAPPER_FOR_ALLOC_PARAM )
   1.445 +#    define __WORKAROUND_RENAME(X) __##X
   1.446 +#  else
   1.447 +#    define __WORKAROUND_RENAME(X) X
   1.448 +#  endif
   1.449 +#  if defined ( _STLP_DEBUG )
   1.450 +#    define __WORKAROUND_DBG_RENAME(X) __##X
   1.451 +#  else
   1.452 +#    define __WORKAROUND_DBG_RENAME(X) __WORKAROUND_RENAME(X)
   1.453 +#  endif
   1.454 +#  define __FULL_NAME(X) __WORKAROUND_RENAME(X)
   1.455 +
   1.456 +/* this always mean the C library is in global namespace */
   1.457 +# if defined (_STLP_HAS_NO_NEW_C_HEADERS) && ! defined (_STLP_VENDOR_GLOBAL_CSTD)
   1.458 +#  define _STLP_VENDOR_GLOBAL_CSTD 1
   1.459 +# endif
   1.460 +
   1.461 +/* Depending of whether compiler supports namespaces,
   1.462 + * tune the parameters for vendor-supplied libraries.
   1.463 + * This section is guarded by _STLP_HAS_NO_NAMESPACES, not by _STLP_USE_NAMESPACES,
   1.464 + * since it depends only on the native features, not on user's preference whether
   1.465 + * to use namespace for STLport or not.
   1.466 + */
   1.467 +# if !defined (_STLP_HAS_NO_NAMESPACES)
   1.468 +/* Import some vendor's headers into corresponding STLport ones if they might be needed
   1.469 + * (if we wrap native iostreams and use namepace other than std::) */
   1.470 +#  if defined (_STLP_WHOLE_NATIVE_STD)
   1.471 +#    define  _STLP_IMPORT_VENDOR_STD 1
   1.472 +#    undef   _STLP_MINIMUM_IMPORT_STD
   1.473 +#  elif (defined (_STLP_USE_OWN_NAMESPACE) || ( defined (_STLP_DEBUG) && defined (_STLP_USE_NAMESPACES))) \
   1.474 +       && defined (_STLP_USE_NEW_IOSTREAMS) && ! defined (_STLP_OWN_IOSTREAMS)
   1.475 +#    define  _STLP_IMPORT_VENDOR_STD 1
   1.476 +#  endif
   1.477 +
   1.478 +/* if using stlport:: namespace or if C library stuff is not in vendor's std::,
   1.479 + * try importing 'em.
   1.480 + * MSVC has ambiguity problem when we try to import C-style std:: stuff back into global namespace */
   1.481 +#  if defined (_STLP_USE_NAMESPACES) && /* ! defined (_STLP_OWN_IOSTREAMS) && */ \
   1.482 +   ( defined(_STLP_USE_OWN_NAMESPACE) || defined (_STLP_VENDOR_GLOBAL_CSTD))
   1.483 +#    define  _STLP_IMPORT_VENDOR_CSTD 1
   1.484 +#  endif
   1.485 +
   1.486 +# if defined (_STLP_NO_USING_FOR_GLOBAL_FUNCTIONS) && ! defined (_STLP_DO_IMPORT_CSTD_FUNCTIONS)
   1.487 +#  define _STLP_NO_CSTD_FUNCTION_IMPORTS
   1.488 +# endif
   1.489 +
   1.490 +#  define  _STLP_USING_NAMESPACE(x) using namespace x ;
   1.491 +
   1.492 +namespace std { }
   1.493 +namespace __std_alias = std;
   1.494 +
   1.495 +/* assume std:: namespace for C++ std library if not being told otherwise */
   1.496 +#  ifdef _STLP_VENDOR_GLOBAL_STD
   1.497 +#   define _STLP_VENDOR_STD
   1.498 +#   define _STLP_USING_VENDOR_STD
   1.499 +#  else
   1.500 +#   define _STLP_VENDOR_STD __std_alias
   1.501 +#   define _STLP_USING_VENDOR_STD _STLP_USING_NAMESPACE(_STLP_VENDOR_STD)
   1.502 +// #   define _STLP_USING_VENDOR_STD
   1.503 +#  endif
   1.504 +
   1.505 +/* tune things that come from C library */
   1.506 +#  if  defined (_STLP_VENDOR_GLOBAL_CSTD) || !defined(_STLP_USE_NEW_C_HEADERS)
   1.507 +/*  in old-style headers, C functions go to global scope. */
   1.508 +#   define _STLP_VENDOR_CSTD
   1.509 +#   define _STLP_USING_VENDOR_CSTD
   1.510 +#  else
   1.511 +#   define _STLP_VENDOR_CSTD  _STLP_VENDOR_STD
   1.512 +#   define _STLP_USING_VENDOR_CSTD _STLP_USING_NAMESPACE(_STLP_VENDOR_CSTD)
   1.513 +#  endif /* _STLP_VENDOR_CSTD */
   1.514 +/* exception, typeinfo, new - always come from the vendor */
   1.515 +#  ifndef _STLP_VENDOR_EXCEPT_STD
   1.516 +#   ifdef _STLP_VENDOR_GLOBAL_EXCEPT_STD
   1.517 +#    define _STLP_VENDOR_EXCEPT_STD
   1.518 +#   else
   1.519 +#    define _STLP_VENDOR_EXCEPT_STD _STLP_VENDOR_STD
   1.520 +#   endif
   1.521 +#  endif
   1.522 +# define _STLP_OLD_IO_NAMESPACE
   1.523 +# ifndef _STLP_VENDOR_MB_NAMESPACE
   1.524 +#  define _STLP_VENDOR_MB_NAMESPACE _STLP_VENDOR_CSTD
   1.525 +# endif
   1.526 +# else 
   1.527 +/* compiler has no namespace support */
   1.528 +#  define _STLP_VENDOR_STD 
   1.529 +#  define _STLP_VENDOR_CSTD
   1.530 +#  define _STLP_USING_NAMESPACE(x)
   1.531 +#  define _STLP_USING_VENDOR_CSTD
   1.532 +#  define _STLP_USING_VENDOR_STD 
   1.533 +#  define _STLP_VENDOR_EXCEPT_STD
   1.534 +# endif
   1.535 +
   1.536 +# if defined (_STLP_USE_NAMESPACES)
   1.537 +
   1.538 +#  if defined (_STLP_USE_OWN_NAMESPACE)
   1.539 +#   define _STLP_STD      _STL
   1.540 +#  else
   1.541 +#   ifdef _STLP_DEBUG
   1.542 +namespace stdD = std;
   1.543 +#   endif
   1.544 +#   define _STLP_STD      std
   1.545 +#  endif /* _STLP_USE_OWN_NAMESPACE */
   1.546 +
   1.547 +#  define _STLP_BEGIN_NAMESPACE namespace _STLP_STD {
   1.548 +#  define _STLP_END_NAMESPACE }
   1.549 +
   1.550 +_STLP_BEGIN_NAMESPACE _STLP_END_NAMESPACE
   1.551 +
   1.552 +namespace stlport = _STLP_STD;
   1.553 +// backward compatibility 
   1.554 +# undef __STLPORT_NAMESPACE
   1.555 +# define __STLPORT_NAMESPACE _STLP_STD
   1.556 +
   1.557 +/* decide whether or not we use separate namespace for rel ops */
   1.558 +#   if defined(_STLP_NO_RELOPS_NAMESPACE)
   1.559 +#     define _STLP_BEGIN_RELOPS_NAMESPACE _STLP_BEGIN_NAMESPACE namespace rel_ops {}
   1.560 +#     define _STLP_END_RELOPS_NAMESPACE }
   1.561 +#   else
   1.562 +/* Use std::rel_ops namespace */
   1.563 +#     define _STLP_BEGIN_RELOPS_NAMESPACE _STLP_BEGIN_NAMESPACE namespace rel_ops {
   1.564 +#     define _STLP_END_RELOPS_NAMESPACE } }
   1.565 +#     define _STLP_USE_SEPARATE_RELOPS_NAMESPACE
   1.566 +#   endif /* Use std::rel_ops namespace */
   1.567 +
   1.568 +# else /* _STLP_USE_NAMESPACES */
   1.569 +/* STLport is being put into global namespace */
   1.570 +#  define _STLP_STD
   1.571 +#  define _STLP_BEGIN_NAMESPACE
   1.572 +#  define _STLP_END_NAMESPACE
   1.573 +
   1.574 +/* boris : it was found out that _STLP_USE_SEPARATE_RELOPS_NAMESPACE 
   1.575 +   causes less problems than having relational operator templates in global namespace
   1.576 +   Please define _STLP_NO_RELOPS_NAMESPACE in stl_user_config.h if your code rely on them. */
   1.577 +#  ifndef _STLP_NO_RELOPS_NAMESPACE
   1.578 +#   define _STLP_USE_SEPARATE_RELOPS_NAMESPACE
   1.579 +#  endif
   1.580 +#  define _STLP_BEGIN_RELOPS_NAMESPACE 
   1.581 +#  define _STLP_END_RELOPS_NAMESPACE 
   1.582 +#  undef  _STLP_USE_OWN_NAMESPACE
   1.583 +# endif  /* _STLP_USE_NAMESPACES */
   1.584 +
   1.585 +# define STLPORT_CSTD _STLP_VENDOR_CSTD
   1.586 +# define STLPORT      _STLP_STD
   1.587 +
   1.588 +#if defined(_STLP_BOGUS_TEMPLATE_TYPE_MATCHING_BUG)
   1.589 +#  define _STLP_SIMPLE_TYPE(T) _stl_trivial_proxy<T>
   1.590 +#else
   1.591 +#  define _STLP_SIMPLE_TYPE(T) T
   1.592 +#endif
   1.593 +
   1.594 +/* if we are going to use native new iostreams, use native <string> and <stdexcept> */
   1.595 +#  if defined (_STLP_USE_NEW_IOSTREAMS) && !defined (_STLP_OWN_IOSTREAMS)
   1.596 +#ifndef __SYMBIAN32__
   1.597 +#   define _STLP_USE_NATIVE_STRING      1
   1.598 +#   define _STLP_USE_NATIVE_STDEXCEPT   1
   1.599 +#endif
   1.600 +# endif
   1.601 +
   1.602 +# ifndef _STLP_RAND48
   1.603 +# define _STLP_NO_DRAND48
   1.604 +# endif
   1.605 +
   1.606 +/* backwards compatibility */
   1.607 +# define __STL_NAMESPACE _STLP_STD
   1.608 +# define __STL_NAME(name) _STLP_STD::name
   1.609 +
   1.610 +/* advanced keywords usage */
   1.611 +#  ifndef  _STLP_NO_NEW_STYLE_CASTS
   1.612 +#   define __CONST_CAST(__x,__y) const_cast<__x>(__y)
   1.613 +#   define __STATIC_CAST(__x,__y) static_cast<__x>(__y)
   1.614 +#   define __REINTERPRET_CAST(__x,__y) reinterpret_cast<__x>(__y)
   1.615 +#   define __DYNAMIC_CAST(__x,__y) dynamic_cast<__x>(__y)
   1.616 +#  else
   1.617 +#   define __STATIC_CAST(__x,__y) ((__x)(__y))
   1.618 +#   define __CONST_CAST(__x,__y) ((__x)(__y))
   1.619 +#   define __REINTERPRET_CAST(__x,__y) ((__x)(__y))
   1.620 +#   define __DYNAMIC_CAST(__x,__y) ((__x)(__y))
   1.621 +#  endif
   1.622 +#  if defined (_STLP_NEED_TYPENAME) && ! defined (typename)
   1.623 +#   define typename
   1.624 +#  endif
   1.625 +#  if defined (_STLP_NEED_TYPENAME) || defined (_STLP_NO_TYPENAME_ON_RETURN_TYPE )
   1.626 +#    define _STLP_TYPENAME_ON_RETURN_TYPE
   1.627 +#  else
   1.628 +#    define _STLP_TYPENAME_ON_RETURN_TYPE typename
   1.629 +#  endif
   1.630 +# ifdef _STLP_NO_TYPENAME_IN_TEMPLATE_HEADER
   1.631 +#  define _STLP_HEADER_TYPENAME
   1.632 +# else
   1.633 +#  define _STLP_HEADER_TYPENAME typename
   1.634 +# endif
   1.635 +# ifndef _STLP_NO_MEMBER_TEMPLATE_KEYWORD
   1.636 +#   define _STLP_TEMPLATE template
   1.637 +# else
   1.638 +#   define _STLP_TEMPLATE
   1.639 +# endif
   1.640 +#  if defined (_STLP_NEED_EXPLICIT) && ! defined (explicit)
   1.641 +#   define explicit
   1.642 +#  endif
   1.643 +#  ifndef _STLP_NEED_MUTABLE
   1.644 +#   define __ASSIGN_MUTABLE(type,x,y) x=y
   1.645 +#  else
   1.646 +#   define __ASSIGN_MUTABLE(type,x,y) __CONST_CAST(type,x)=y
   1.647 +#   define mutable
   1.648 +#  endif
   1.649 +# if defined (_STLP_NO_SIGNED_BUILTINS)
   1.650 +/* old HP-UX doesn't understand "signed" keyword */
   1.651 +#  define signed
   1.652 +# endif
   1.653 +
   1.654 +#  if defined (_STLP_LOOP_INLINE_PROBLEMS)
   1.655 +#   define _STLP_INLINE_LOOP
   1.656 +#  else
   1.657 +#   define _STLP_INLINE_LOOP inline 
   1.658 +#  endif
   1.659 +
   1.660 +#  define _STLP_PRIVATE public
   1.661 +#  define _STLP_PROTECTED public
   1.662 +
   1.663 +#  ifndef _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX
   1.664 +#   define _STLP_TEMPLATE_NULL template<>
   1.665 +#  else
   1.666 +#   define _STLP_TEMPLATE_NULL
   1.667 +#  endif
   1.668 +
   1.669 +#ifdef _STLP_FUNCTION_TMPL_PARTIAL_ORDER
   1.670 +#  define _STLP_OPERATOR_TEMPLATE
   1.671 +# else 
   1.672 +#  define _STLP_OPERATOR_TEMPLATE _STLP_TEMPLATE_NULL
   1.673 +#endif
   1.674 +
   1.675 +# ifndef _STLP_CLASS_PARTIAL_SPECIALIZATION
   1.676 +/* unless we have other compiler problem, try simulating partial spec here */
   1.677 +# if ! defined (_STLP_DONT_SIMULATE_PARTIAL_SPEC_FOR_TYPE_TRAITS)
   1.678 +#  define  _STLP_SIMULATE_PARTIAL_SPEC_FOR_TYPE_TRAITS
   1.679 +# endif
   1.680 +/* For your own iterators, please use inheritance from iterator<> instead of these obsolete queries. */
   1.681 +#  if  ( defined (_STLP_NESTED_TYPE_PARAM_BUG) || !defined (_STLP_SIMULATE_PARTIAL_SPEC_FOR_TYPE_TRAITS))
   1.682 +#   if ! defined ( _STLP_USE_OLD_HP_ITERATOR_QUERIES )
   1.683 +#    define _STLP_USE_OLD_HP_ITERATOR_QUERIES
   1.684 +#   endif
   1.685 +#  elif defined ( _STLP_NO_ANACHRONISMS )
   1.686 +#   undef _STLP_USE_OLD_HP_ITERATOR_QUERIES
   1.687 +#  endif
   1.688 +# endif
   1.689 +
   1.690 +# ifndef _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS
   1.691 +#   define _STLP_NULL_TMPL_ARGS <>
   1.692 +# else
   1.693 +#   define _STLP_NULL_TMPL_ARGS
   1.694 +# endif
   1.695 +
   1.696 +# ifndef _STLP_ALLOCATOR_TYPE_DFL
   1.697 +#  ifdef _STLP_NEEDS_EXTRA_TEMPLATE_CONSTRUCTORS 
   1.698 +#   define _STLP_ALLOCATOR_TYPE_DFL 
   1.699 +#  else
   1.700 +#   define _STLP_ALLOCATOR_TYPE_DFL = allocator_type()
   1.701 +#  endif
   1.702 +# endif
   1.703 +
   1.704 +//When the compiler do not correctly initialized the basic types value in default parameters we prefer
   1.705 +//to avoid them to be able to correct this bug.
   1.706 +# if defined (_STLP_DEF_CONST_DEF_PARAM_BUG)
   1.707 +#  define _STLP_DONT_SUP_DFLT_PARAM 1
   1.708 +# endif
   1.709 +
   1.710 +# if defined (__SGI_STL_NO_ARROW_OPERATOR) && ! defined (_STLP_NO_ARROW_OPERATOR)
   1.711 +# define _STLP_NO_ARROW_OPERATOR
   1.712 +# endif
   1.713 +
   1.714 +# if !defined (_STLP_CLASS_PARTIAL_SPECIALIZATION)
   1.715 +#  if !( defined (_STLP_NO_ARROW_OPERATOR)) \
   1.716 +      && !defined (_STLP_NO_MSVC50_COMPATIBILITY) && !defined (_STLP_MSVC50_COMPATIBILITY)
   1.717 +/* this one is needed for proper reverse_iterator<> operator ->() handling */
   1.718 +#   define _STLP_MSVC50_COMPATIBILITY 1
   1.719 +#  endif
   1.720 +# endif
   1.721 +
   1.722 +#if defined ( _STLP_CLASS_PARTIAL_SPECIALIZATION )
   1.723 +# if (defined(__IBMCPP__) && (500 <= __IBMCPP__) && (__IBMCPP__ < 600) )
   1.724 +# define _STLP_DECLARE_REVERSE_ITERATORS(__reverse_iterator) \
   1.725 +   typedef typename _STLP_STD :: reverse_iterator<const_iterator> const_reverse_iterator; \
   1.726 +   typedef typename _STLP_STD :: reverse_iterator<iterator> reverse_iterator
   1.727 +# elif (defined (__sgi) && ! defined (__GNUC__)) || defined (__SUNPRO_CC) || defined (__xlC__)
   1.728 +#  define _STLP_DECLARE_REVERSE_ITERATORS(__reverse_iterator) \
   1.729 +   typedef _STLP_STD:: _STLP_TEMPLATE reverse_iterator<const_iterator> const_reverse_iterator; \
   1.730 +   typedef _STLP_STD:: _STLP_TEMPLATE reverse_iterator<iterator> reverse_iterator
   1.731 +# else
   1.732 +#  define _STLP_DECLARE_REVERSE_ITERATORS(__reverse_iterator) \
   1.733 +   typedef _STLP_STD::reverse_iterator<const_iterator> const_reverse_iterator; \
   1.734 +   typedef _STLP_STD::reverse_iterator<iterator> reverse_iterator
   1.735 +# endif
   1.736 +#else /* _STLP_CLASS_PARTIAL_SPECIALIZATION */
   1.737 +# if defined (_STLP_MSVC50_COMPATIBILITY)
   1.738 +# define _STLP_DECLARE_REVERSE_ITERATORS(__reverse_iterator) \
   1.739 +  typedef _STLP_STD::__reverse_iterator<const_iterator, value_type, const_reference, \
   1.740 +    const_pointer, difference_type>  const_reverse_iterator; \
   1.741 +  typedef _STLP_STD::__reverse_iterator<iterator, value_type, reference, pointer, difference_type> \
   1.742 +    reverse_iterator
   1.743 +# else
   1.744 +# define _STLP_DECLARE_REVERSE_ITERATORS(__reverse_iterator) \
   1.745 +  typedef _STLP_STD::__reverse_iterator<const_iterator, value_type, const_reference, \
   1.746 +    difference_type>  const_reverse_iterator; \
   1.747 +  typedef _STLP_STD::__reverse_iterator<iterator, value_type, \
   1.748 +    reference, difference_type> \
   1.749 +    reverse_iterator
   1.750 +# endif
   1.751 +#endif /* _STLP_CLASS_PARTIAL_SPECIALIZATION */
   1.752 +
   1.753 +# define _STLP_DECLARE_BIDIRECTIONAL_REVERSE_ITERATORS \
   1.754 +         _STLP_DECLARE_REVERSE_ITERATORS(reverse_bidirectional_iterator)
   1.755 +# define _STLP_DECLARE_RANDOM_ACCESS_REVERSE_ITERATORS \
   1.756 +         _STLP_DECLARE_REVERSE_ITERATORS(reverse_iterator)
   1.757 +
   1.758 +#  define __IMPORT_CONTAINER_TYPEDEFS(_Super)                            \
   1.759 +    typedef typename _Super::value_type value_type;                      \
   1.760 +    typedef typename _Super::size_type size_type;                        \
   1.761 +    typedef typename _Super::difference_type difference_type;            \
   1.762 +    typedef typename _Super::reference reference;                        \
   1.763 +    typedef typename _Super::const_reference const_reference;            \
   1.764 +    typedef typename _Super::pointer pointer;                            \
   1.765 +    typedef typename _Super::const_pointer const_pointer;                \
   1.766 +    typedef typename _Super::allocator_type allocator_type;
   1.767 +
   1.768 +
   1.769 +#  define __IMPORT_ITERATORS(_Super)                                     \
   1.770 +    typedef typename _Super::iterator iterator;                                   \
   1.771 +    typedef typename _Super::const_iterator const_iterator; 
   1.772 +
   1.773 +#  define __IMPORT_REVERSE_ITERATORS(_Super)                             \
   1.774 +    typedef typename _Super::const_reverse_iterator  const_reverse_iterator;      \
   1.775 +    typedef typename _Super::reverse_iterator reverse_iterator;
   1.776 +
   1.777 +#  define  __IMPORT_SUPER_COPY_ASSIGNMENT(__derived_name, _Self, _SUPER)         \
   1.778 +    __derived_name(const _Super& __x) : _SUPER(__x) {}          \
   1.779 +    _Self& operator=(const _Super& __x) {                       \
   1.780 +        *(_Super*)this = __x;                                   \
   1.781 +        return *this;                                           \
   1.782 +    }  \
   1.783 +    __derived_name(const _Self& __x) : _SUPER(__x) {}          \
   1.784 +    _Self& operator=(const _Self& __x) {                       \
   1.785 +        *(_Super*)this = __x;                                   \
   1.786 +        return *this;                                           \
   1.787 +    }
   1.788 +
   1.789 +# define __IMPORT_WITH_ITERATORS(_Super) \
   1.790 +__IMPORT_CONTAINER_TYPEDEFS(_Super) __IMPORT_ITERATORS(_Super)
   1.791 +
   1.792 +# define __IMPORT_WITH_REVERSE_ITERATORS(_Super) \
   1.793 +__IMPORT_WITH_ITERATORS(_Super) __IMPORT_REVERSE_ITERATORS(_Super)
   1.794 +
   1.795 +# if defined (_STLP_TRIVIAL_CONSTRUCTOR_BUG) 
   1.796 +#  define __TRIVIAL_CONSTRUCTOR(__type) __type() {}  
   1.797 +# else
   1.798 +#  define __TRIVIAL_CONSTRUCTOR(__type)
   1.799 +# endif
   1.800 +# if defined (_STLP_TRIVIAL_DESTRUCTOR_BUG)
   1.801 +#  define __TRIVIAL_DESTRUCTOR(__type) ~__type() {}  
   1.802 +# else
   1.803 +#  define __TRIVIAL_DESTRUCTOR(__type) 
   1.804 +# endif
   1.805 +
   1.806 +#  define __TRIVIAL_STUFF(__type)  \
   1.807 +  __TRIVIAL_CONSTRUCTOR(__type) __TRIVIAL_DESTRUCTOR(__type)
   1.808 +
   1.809 +# if ! (defined ( _STLP_NO_EXCEPTIONS ) || defined (_STLP_HAS_NO_EXCEPTIONS) \
   1.810 +	|| defined ( _STLP_USE_EXCEPTIONS ))
   1.811 +#  define _STLP_USE_EXCEPTIONS
   1.812 +# endif 
   1.813 +
   1.814 +#define _STLP_NOPUSH 
   1.815 +
   1.816 +# ifdef _STLP_USE_EXCEPTIONS
   1.817 +#   define _STLP_LEAVE_VOLATILE
   1.818 +#   define _STLP_TRY try
   1.819 +#   define _STLP_CATCH_ALL catch(...)
   1.820 +#   ifndef _STLP_THROW
   1.821 +#    define _STLP_THROW(x) throw x
   1.822 +#   endif
   1.823 +#   define _STLP_RETHROW throw
   1.824 +#   define _STLP_UNWIND(action) catch(...) { action; throw; }
   1.825 +#   define _STLP_UNWIND_BEGIN(action) catch(...) 
   1.826 +
   1.827 +#   ifdef _STLP_THROW_RETURN_BUG
   1.828 +#     define _STLP_RET_AFTER_THROW(data) return data
   1.829 +#   else
   1.830 +#     define _STLP_RET_AFTER_THROW(data)
   1.831 +#   endif
   1.832 +
   1.833 +#   if !defined ( _STLP_NO_EXCEPTION_SPEC )
   1.834 +#    define _STLP_THROWS_INHERENTLY(x) throw x
   1.835 +#    define _STLP_NOTHROW_INHERENTLY throw()
   1.836 +#   else
   1.837 +#    define _STLP_THROWS_INHERENTLY(x)
   1.838 +#    define _STLP_NOTHROW_INHERENTLY 
   1.839 +#   endif
   1.840 +/* We do not use exception throw specifications unless we are forced to */
   1.841 +#   define _STLP_THROWS(x)
   1.842 +#   define _STLP_NOTHROW 
   1.843 +
   1.844 +# elif defined _STLP_USE_TRAP_LEAVE
   1.845 +
   1.846 +#include <bldvariant.hrh>
   1.847 +
   1.848 +#ifdef __SERIES60_30__
   1.849 +#include <e32cmn.h>
   1.850 +#else
   1.851 +#include <e32base.h>
   1.852 +#endif  // __SERIES60_30__
   1.853 +
   1.854 +
   1.855 +class _TStUntrap {
   1.856 +public:
   1.857 +    ~_TStUntrap() { 
   1.858 +      TTrap::UnTrap(); }
   1.859 +};
   1.860 +
   1.861 +// this does not work for MSVC 6.0
   1.862 +# if defined (_MSC_VER) && (_MSC_VER <= 1200)
   1.863 +# define _STLP_LEAVE_VOLATILE
   1.864 +# else
   1.865 +# define _STLP_LEAVE_VOLATILE volatile
   1.866 +# endif
   1.867 +
   1.868 +template<class T> inline void _STLP_no_unused_variable_warning(const T &) {}
   1.869 +
   1.870 +#   define _STLP_TRY TInt _STL_TrapExitCode; { TTrap _STL_Trap;	\
   1.871 +  if (_STL_Trap.Trap(_STL_TrapExitCode)==0) { \
   1.872 +    _TStUntrap _STL_Untrap;	\
   1.873 +    _STLP_no_unused_variable_warning( _STL_Untrap );
   1.874 +
   1.875 +#   define _STLP_CATCH_ALL \
   1.876 +   } } if (_STL_TrapExitCode)
   1.877 +
   1.878 +# define _STLP_TRY_C
   1.879 +# define _STLP_UNWIND_C(x) 
   1.880 +# define _STLP_CATCH_ALL_C
   1.881 +
   1.882 +#   ifndef _STLP_THROW
   1.883 +#    define _STLP_THROW(x)
   1.884 +#   endif
   1.885 +
   1.886 +#   define _STLP_RETHROW User::Leave(_STL_TrapExitCode)
   1.887 +#   define _STLP_UNWIND(__action) _STLP_CATCH_ALL { __action; _STLP_RETHROW; }
   1.888 +
   1.889 +#   define __THROW_BAD_ALLOC User::Leave(STDEX_bad_alloc);
   1.890 +
   1.891 +#   ifdef _STLP_THROW_RETURN_BUG
   1.892 +#     define _STLP_RET_AFTER_THROW(data) return data
   1.893 +#   else
   1.894 +#     define _STLP_RET_AFTER_THROW(data)
   1.895 +#   endif
   1.896 +/* We do not use exception throw specifications unless we are forced to */
   1.897 +#   define _STLP_THROWS(x)
   1.898 +#   define _STLP_NOTHROW 
   1.899 +#   define _STLP_THROWS_INHERENTLY(x)
   1.900 +#   define _STLP_NOTHROW_INHERENTLY 
   1.901 +
   1.902 +# else
   1.903 +#   define _STLP_LEAVE_VOLATILE
   1.904 +#   define _STLP_TRY 
   1.905 +#   define _STLP_CATCH_ALL if (false)
   1.906 +#   ifndef _STLP_THROW
   1.907 +#    define _STLP_THROW(x)
   1.908 +#   endif
   1.909 +#   define _STLP_RETHROW {}
   1.910 +#   define _STLP_UNWIND(action) 
   1.911 +#   define _STLP_THROWS(x)
   1.912 +#   define _STLP_NOTHROW
   1.913 +#   define _STLP_RET_AFTER_THROW(data)
   1.914 +#   define _STLP_THROWS_INHERENTLY(x)
   1.915 +#   define _STLP_NOTHROW_INHERENTLY 
   1.916 +# endif
   1.917 +
   1.918 +#if defined(_STLP_NO_BOOL)
   1.919 +# if (defined (__IBMCPP__) && (__IBMCPP__ < 400)) && ! defined (_AIX)
   1.920 +#  include <isynonym.hpp>
   1.921 +#  if defined (__OS400__)
   1.922 +    typedef int bool;
   1.923 +#  elif !( defined (__xlC__) || defined (_AIX))
   1.924 +    typedef Boolean bool;
   1.925 +#  endif
   1.926 +# else
   1.927 +#  if defined(_STLP_YVALS_H)
   1.928 +#   include <yvals.h>
   1.929 +#  else
   1.930 +#    if defined (_STLP_DONT_USE_BOOL_TYPEDEF)
   1.931 +#     define bool int
   1.932 +#    else
   1.933 +      typedef int bool;
   1.934 +#    endif
   1.935 +#    define true 1
   1.936 +#    define false 0
   1.937 +#  endif
   1.938 +# endif /* __IBMCPP__ */
   1.939 +#else
   1.940 +#    define _STLP_BOOL_KEYWORD 1
   1.941 +#endif /* _STLP_NO_BOOL */
   1.942 +
   1.943 +# ifndef _STLP_MPW_EXTRA_CONST
   1.944 +#  define _STLP_MPW_EXTRA_CONST
   1.945 +# endif
   1.946 +
   1.947 +# ifndef _STLP_DEFAULTCHAR
   1.948 +#  define _STLP_DEFAULTCHAR char
   1.949 +# endif
   1.950 +
   1.951 +# if defined (_STLP_DEBUG_ALLOC) && ! defined (_STLP_ASSERTIONS)
   1.952 +#  define _STLP_ASSERTIONS 1
   1.953 +# endif
   1.954 +
   1.955 +/* uninitialized value filler */
   1.956 +# ifndef _STLP_SHRED_BYTE
   1.957 +/* This value is designed to cause problems if an error occurs */
   1.958 +#   define _STLP_SHRED_BYTE 0xA3
   1.959 +# endif /* _STLP_SHRED_BYTE */
   1.960 +
   1.961 +/* shared library tune-up */
   1.962 +# ifndef _STLP_IMPORT_DECLSPEC
   1.963 +//#  define _STLP_IMPORT_DECLSPEC
   1.964 +# endif
   1.965 +/* a keyword used to instantiate export template */
   1.966 +#  ifndef _STLP_EXPORT_TEMPLATE_KEYWORD
   1.967 +#   define _STLP_EXPORT_TEMPLATE_KEYWORD EXPORT_C
   1.968 +#  endif
   1.969 +# ifndef _STLP_IMPORT_TEMPLATE_KEYWORD
   1.970 +#  define _STLP_IMPORT_TEMPLATE_KEYWORD IMPORT_C
   1.971 +# endif
   1.972 +
   1.973 +
   1.974 +# if  defined (_STLP_DLLEXPORT_NEEDS_PREDECLARATION) && defined (_STLP_USE_DECLSPEC)
   1.975 +#  if ! defined (_STLP_USE_TEMPLATE_EXPORT)
   1.976 +/* this setting turns on "extern template" extension use */
   1.977 +#   define _STLP_USE_TEMPLATE_EXPORT
   1.978 +#  endif
   1.979 +#  if defined (_STLP_DESIGNATED_DLL) && ! defined (_STLP_NO_FORCE_INSTANTIATE)
   1.980 +#   define _STLP_NO_FORCE_INSTANTIATE
   1.981 +#  endif
   1.982 +# endif
   1.983 +
   1.984 +#   if defined (_STLP_DESIGNATED_DLL) /* This is a lib which will contain STLport exports */
   1.985 +#    define  _STLP_EXPORT          _STLP_EXPORT_TEMPLATE_KEYWORD
   1.986 +#   else
   1.987 +#    define  _STLP_EXPORT          _STLP_IMPORT_TEMPLATE_KEYWORD
   1.988 +#  endif
   1.989 +
   1.990 +# ifndef _STLP_EXPORT_TEMPLATE
   1.991 +#  define  _STLP_EXPORT_TEMPLATE _STLP_EXPORT template
   1.992 +# endif
   1.993 +
   1.994 +# if defined (_STLP_USE_DECLSPEC) /* using export/import technique */
   1.995 +
   1.996 +#  ifndef _STLP_EXPORT_DECLSPEC
   1.997 +#ifdef __SYMBIAN32__
   1.998 +#   define _STLP_EXPORT_DECLSPEC EXPORT_C
   1.999 +#else
  1.1000 +#   define _STLP_EXPORT_DECLSPEC
  1.1001 +#endif
  1.1002 +#  endif
  1.1003 +#  ifndef _STLP_IMPORT_DECLSPEC
  1.1004 +#ifdef __SYMBIAN32__
  1.1005 +#   define _STLP_IMPORT_DECLSPEC IMPORT_C
  1.1006 +#else
  1.1007 +#   define _STLP_IMPORT_DECLSPEC
  1.1008 +#endif
  1.1009 +#  endif
  1.1010 +#  ifndef _STLP_CLASS_EXPORT_DECLSPEC
  1.1011 +#   define _STLP_CLASS_EXPORT_DECLSPEC
  1.1012 +#  endif
  1.1013 +#  ifndef _STLP_CLASS_IMPORT_DECLSPEC
  1.1014 +#   define _STLP_CLASS_IMPORT_DECLSPEC
  1.1015 +#  endif
  1.1016 +#  if defined (_STLP_DESIGNATED_DLL) /* This is a lib which will contain STLport exports */
  1.1017 +#   define  _STLP_DECLSPEC        _STLP_IMPORT_DECLSPEC 
  1.1018 +#   define  _STLP_EXP_DECLSPEC    _STLP_EXPORT_DECLSPEC
  1.1019 +#   define  _STLP_CLASS_DECLSPEC  _STLP_CLASS_EXPORT_DECLSPEC 
  1.1020 +#  else
  1.1021 +#   define  _STLP_DECLSPEC        //_STLP_IMPORT_DECLSPEC   /* Other modules, importing STLport exports */
  1.1022 +#   define  _STLP_EXP_DECLSPEC    //_STLP_EXPORT_DECLSPEC
  1.1023 +#   define  _STLP_CLASS_DECLSPEC  _STLP_CLASS_IMPORT_DECLSPEC
  1.1024 +#   undef _STLP_USE_NAMESPACES
  1.1025 +#   define _STLP_USE_NAMESPACES
  1.1026 +#  endif
  1.1027 +
  1.1028 +#  ifndef _STLP_STATIC_CONST_INIT_BUG
  1.1029 +// constant data members cannot be exported; using workaround here
  1.1030 +#   define _STLP_STATIC_CONST_INIT_BUG
  1.1031 +#  endif
  1.1032 +# else /* Not using DLL export/import specifications */
  1.1033 +
  1.1034 +#  define _STLP_DECLSPEC
  1.1035 +#  define _STLP_CLASS_DECLSPEC
  1.1036 +
  1.1037 +# endif
  1.1038 +
  1.1039 +#  define _STLP_EXPORT_TEMPLATE_CLASS _STLP_EXPORT template class _STLP_CLASS_DECLSPEC
  1.1040 +
  1.1041 +#ifndef _STLP_EXPORT_METHOD
  1.1042 +# define _STLP_EXPORT_METHOD 
  1.1043 +#endif
  1.1044 +
  1.1045 +#  if defined (_STLP_MSVC) || defined (__ICL)
  1.1046 +#   define _STLP_STATIC_MEMBER_DECLSPEC
  1.1047 +#   define _STLP_STATIC_MEMBER_EXP_DECLSPEC
  1.1048 +#  else
  1.1049 +#   define _STLP_STATIC_MEMBER_DECLSPEC _STLP_DECLSPEC
  1.1050 +#   define _STLP_STATIC_MEMBER_EXP_DECLSPEC _STLP_EXPORT_DECLSPEC
  1.1051 +#  endif
  1.1052 +
  1.1053 +# if !defined (_STLP_CALL)
  1.1054 +#   define _STLP_CALL
  1.1055 +# endif
  1.1056 +
  1.1057 +#ifdef _STLP_OWN_IOSTREAMS
  1.1058 +
  1.1059 +#  if defined (__DECCXX) && ! defined (__USE_STD_IOSTREAM)
  1.1060 +#   define __USE_STD_IOSTREAM
  1.1061 +#  endif
  1.1062 +
  1.1063 +/* We only need to expose details of streams implementation 
  1.1064 +   if we use non-standard i/o or are building STLport*/
  1.1065 +# if defined (__BUILDING_STLPORT) ||  defined (_STLP_NO_FORCE_INSTANTIATE) || !defined(_STLP_NO_CUSTOM_IO) || defined (__SYMBIAN32__)
  1.1066 +#  define _STLP_EXPOSE_STREAM_IMPLEMENTATION 1
  1.1067 +# endif
  1.1068 +
  1.1069 +/* We only need to expose details of global implementation if we are building STLport 
  1.1070 +   or have not instantiated everything in the lib */
  1.1071 +
  1.1072 +//# if defined (__BUILDING_STLPORT) || defined (_STLP_NO_FORCE_INSTANTIATE)
  1.1073 +#   undef  _STLP_EXPOSE_GLOBALS_IMPLEMENTATION
  1.1074 +#   define _STLP_EXPOSE_GLOBALS_IMPLEMENTATION 1
  1.1075 +//# endif
  1.1076 +
  1.1077 +#else
  1.1078 +/* when we are not using SGI iostreams, we must expose globals, but not streams implementation */
  1.1079 +#  define _STLP_EXPOSE_GLOBALS_IMPLEMENTATION
  1.1080 +#endif
  1.1081 +
  1.1082 +# ifdef _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS
  1.1083 +#  define _STLP_PSPEC2(t1,t2) < t1,t2 >
  1.1084 +#  define _STLP_PSPEC3(t1,t2,t3) < t1,t2,t3 >
  1.1085 +# else
  1.1086 +#  define _STLP_PSPEC2(t1,t2)	/* nothing */
  1.1087 +#  define _STLP_PSPEC3(t1,t2,t3)	/* nothing */
  1.1088 +# endif
  1.1089 +
  1.1090 +# ifdef _STLP_OPERATOR_SPEC_NEEDS_TEMPLATE_ARGS
  1.1091 +#  define _STLP_OPSPEC2(t1,t2) < t1,t2 >
  1.1092 +# else
  1.1093 +#  define _STLP_OPSPEC2(t1,t2)	/* nothing */
  1.1094 +# endif
  1.1095 +
  1.1096 +//Activation of the partial template workaround:
  1.1097 +# if !defined(_STLP_DONT_USE_PARTIAL_SPEC_WRKD) \
  1.1098 +    && (!defined(_STLP_CLASS_PARTIAL_SPECIALIZATION) || !defined(_STLP_FUNCTION_TMPL_PARTIAL_ORDER))
  1.1099 +#  define _STLP_USE_PARTIAL_SPEC_WORKAROUND
  1.1100 +# endif
  1.1101 +
  1.1102 +# if defined (_STLP_OWN_IOSTREAMS)
  1.1103 +#  define _STLP_NEW_IO_NAMESPACE _STLP_STD
  1.1104 +#  define _STLP_NO_WIDE_STREAMS  _STLP_NO_WCHAR_T
  1.1105 +# else
  1.1106 +#  ifdef _STLP_USE_NEW_IOSTREAMS
  1.1107 +#   define _STLP_NEW_IO_NAMESPACE _STLP_VENDOR_STD
  1.1108 +#   ifdef _STLP_NO_NATIVE_WIDE_STREAMS
  1.1109 +#    define _STLP_NO_WIDE_STREAMS _STLP_NO_NATIVE_WIDE_STREAMS
  1.1110 +#   endif /* _STLP_NO_NATIVE_WIDE_STREAMS */
  1.1111 +#  else
  1.1112 +#   define _STLP_NO_WIDE_STREAMS
  1.1113 +#   define _STLP_NEW_IO_NAMESPACE
  1.1114 +#  endif
  1.1115 +# endif
  1.1116 +
  1.1117 +#ifdef _STLP_USE_SEPARATE_RELOPS_NAMESPACE
  1.1118 +# define _STLP_RELOPS_OPERATORS(_TMPL, _TP) \
  1.1119 +_TMPL inline bool _STLP_CALL operator!=(const _TP& __x, const _TP& __y) {return !(__x == __y);}\
  1.1120 +_TMPL inline bool _STLP_CALL operator>(const _TP& __x, const _TP& __y)  {return __y < __x;}\
  1.1121 +_TMPL inline bool _STLP_CALL operator<=(const _TP& __x, const _TP& __y) { return !(__y < __x);}\
  1.1122 +_TMPL inline bool _STLP_CALL operator>=(const _TP& __x, const _TP& __y) { return !(__x < __y);}
  1.1123 +# else
  1.1124 +#  define _STLP_RELOPS_OPERATORS(_TMPL, _TP)
  1.1125 +# endif
  1.1126 +
  1.1127 +# if defined (_STLP_FULL_ADL_IMPLEMENTED) && defined (_STLP_NO_OWN_IOSTREAMS)
  1.1128 +#  error "Invalid configuration, STLport wrapper iostream mode can't be used with compiler"\
  1.1129 +         "implementing full Argument Dependent Lookup. Please remove _STLP_NO_OWN_IOSTREAMS switch"\
  1.1130 +         "and build STLport library."
  1.1131 +# endif /* _STLP_FULL_ADL_IMPLEMENTED && _STLP_NO_OWN_IOSTREAMS */
  1.1132 +
  1.1133 +# if defined ( _STLP_USE_ABBREVS )
  1.1134 +#  include <stl/_abbrevs.h>
  1.1135 +# endif
  1.1136 +
  1.1137 +/* some cleanup */
  1.1138 +# undef _STLP_DONT_USE_BOOL_TYPEDEF
  1.1139 +# undef _STLP_YVALS_H
  1.1140 +# undef _STLP_LOOP_INLINE_PROBLEMS
  1.1141 +# undef _STLP_NEED_EXPLICIT
  1.1142 +# undef _STLP_NEED_TYPENAME
  1.1143 +# undef _STLP_NO_NEW_STYLE_CASTS
  1.1144 +# undef __AUTO_CONFIGURED
  1.1145 +
  1.1146 +#   define _STLP_EXPORT_METHOD 
  1.1147 +#   define _STLP_EXPORT_CONCRETE_METHOD
  1.1148 +#   define _STLP_EXPORT_METHOD
  1.1149 +#   define _STLP_EXPORT_CONCRETE_METHOD
  1.1150 +#   define _STLP_IMPORT_METHOD
  1.1151 +
  1.1152 +#ifdef __SYMBIAN32__
  1.1153 +#define __STLP_NO_WRITE_SIDE_BUFFERING__
  1.1154 +#endif
  1.1155 +#endif /* _STLP_CONFIG_H */
  1.1156 +
  1.1157 +/*
  1.1158 + Local Variables:
  1.1159 + mode:C++
  1.1160 + End:
  1.1161 +*/