26#ifndef _STLP_FEATURES_H
27#define _STLP_FEATURES_H
58#define _STLP_STLPORT_DBG_LEVEL 1
59#define _STLP_STANDARD_DBG_LEVEL 2
67#if defined (_STLP_DEBUG) && !defined (_STLP_DEBUG_LEVEL)
68# define _STLP_DEBUG_LEVEL _STLP_STLPORT_DBG_LEVEL
71#if defined (__BUILDING_STLPORT)
74# if defined (_STLP_NO_ANACHRONISMS)
75# undef _STLP_NO_ANACHRONISMS
77# if defined (_STLP_NO_EXTENSIONS)
78# undef _STLP_NO_EXTENSIONS
82# if defined (_STLP_NO_IOSTREAMS)
83# error If you do not use iostreams you do not need to build the STLport library.
107#if !defined (_STLP_NO_MEMBER_TEMPLATES) && !defined (_STLP_MEMBER_TEMPLATES)
108# define _STLP_MEMBER_TEMPLATES 1
111#if !defined (_STLP_NO_MEMBER_TEMPLATE_CLASSES) && !defined (_STLP_MEMBER_TEMPLATE_CLASSES)
112# define _STLP_MEMBER_TEMPLATE_CLASSES 1
115#if defined (_STLP_NO_MEMBER_TEMPLATE_CLASSES) && !defined (_STLP_DONT_SUPPORT_REBIND_MEMBER_TEMPLATE)
116# define _STLP_DONT_SUPPORT_REBIND_MEMBER_TEMPLATE 1
119#if !defined (_STLP_NO_CLASS_PARTIAL_SPECIALIZATION) && !defined (_STLP_CLASS_PARTIAL_SPECIALIZATION)
120# define _STLP_CLASS_PARTIAL_SPECIALIZATION 1
123#if !defined (_STLP_FUNCTION_TMPL_PARTIAL_ORDER) && !defined (_STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER)
124# define _STLP_FUNCTION_TMPL_PARTIAL_ORDER 1
127#if !defined (_STLP_DONT_USE_SHORT_STRING_OPTIM) && !defined (_STLP_USE_SHORT_STRING_OPTIM)
128# define _STLP_USE_SHORT_STRING_OPTIM 1
131#if defined (_STLP_MEMBER_TEMPLATES) && !defined (_STLP_NO_EXTENSIONS) && \
132 !defined (_STLP_NO_CONTAINERS_EXTENSION) && !defined (_STLP_USE_CONTAINERS_EXTENSION)
133# define _STLP_USE_CONTAINERS_EXTENSION
136#if defined (_STLP_USE_CONTAINERS_EXTENSION)
137# define _STLP_TEMPLATE_FOR_CONT_EXT template <class _KT>
139# define _STLP_TEMPLATE_FOR_CONT_EXT
142#if defined (_STLP_USE_PTR_SPECIALIZATIONS) && \
143 (defined (_STLP_NO_CLASS_PARTIAL_SPECIALIZATION) && defined (_STLP_DONT_SIMULATE_PARTIAL_SPEC_FOR_TYPE_TRAITS))
144# error Sorry but according the STLport settings your compiler can not support the pointer specialization feature.
147#if defined (_STLP_WHOLE_NATIVE_STD) && defined (_STLP_NO_OWN_NAMESPACE)
148# error Sorry but asking for both STLport to be in the real std namespace and also having STLport import all native std stuff \
149 is invalid, chose one or none.
152#if defined (_STLP_VERBOSE) && !defined (_STLP_VERBOSE_MODE_SUPPORTED)
153# error Sorry but the verbose mode is not implemented for your compiler.
156#if defined (_STLP_NO_IOSTREAMS) && \
157 !defined (_STLP_USE_NEWALLOC) && !defined (_STLP_USE_MALLOC)
158# define _STLP_USE_NEWALLOC
161#if !defined (_STLP_BIG_ENDIAN) && !defined (_STLP_LITTLE_ENDIAN)
162# if defined (_MIPSEB) || defined (__sparc) || defined (_AIX) || \
163 defined (__hpux) || defined (macintosh) || defined (_MAC)
164# define _STLP_BIG_ENDIAN 1
165# elif defined (__i386) || defined (_M_IX86) || defined (_M_ARM) || defined (_M_ARM64) || \
166 defined (__amd64__) || defined (_M_AMD64) || defined (__x86_64__) || \
168# define _STLP_LITTLE_ENDIAN 1
169# elif defined (__ia64__)
171# if defined (__BIG_ENDIAN__)
172# define _STLP_BIG_ENDIAN 1
174# define _STLP_LITTLE_ENDIAN 1
177# error "can't determine endianess"
185#ifndef _STLP_UINT32_T
186# define _STLP_UINT32_T unsigned long
189# define _STLP_ABORT() abort()
192#if !defined (_STLP_HAS_NO_NAMESPACES)
193# if defined _STLP_NO_NAMESPACES
194# undef _STLP_USE_NAMESPACES
197# undef _STLP_USE_NAMESPACES
198# define _STLP_USE_NAMESPACES 1
202#if defined (_STLP_NO_IOSTREAMS)
203# define _STLP_USE_NO_IOSTREAMS
207#if (defined(__unix) || defined(__linux__) || defined(__QNX__) || defined(_AIX) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__Lynx__) || defined(__hpux) || defined(__sgi)) && \
208 !defined (_STLP_UNIX)
212#if !defined (_STLP_NO_LONG_DOUBLE)
213# define _STLP_LONGEST_FLOAT_TYPE long double
215# define _STLP_LONGEST_FLOAT_TYPE double
219#if !defined (_STLP_HAS_INCLUDE_NEXT)
225#if defined (__BUILDING_STLPORT)
227# undef _STLP_DESIGNATED_DLL
228# define _STLP_DESIGNATED_DLL 1
232#if defined (_STLP_USE_NAMESPACES) && !defined (_STLP_BROKEN_USING_DIRECTIVE) && \
233 !defined (_STLP_NO_OWN_NAMESPACE)
234# undef _STLP_USE_OWN_NAMESPACE
235# define _STLP_USE_OWN_NAMESPACE 1
237# undef _STLP_WHOLE_NATIVE_STD
240#if !defined (_NOTHREADS) && !defined (_STLP_THREADS_DEFINED)
242# if defined (_PTHREADS)
243# define _STLP_PTHREADS
244# define _STLP_THREADS
246# if defined (_UITHREADS)
247# define _STLP_UITHREADS
248# define _STLP_THREADS
251# if defined (_STLP_WIN32) && !defined (_STLP_PTHREADS)
252# define _STLP_WIN32THREADS 1
253# elif ((defined (__sun) && !defined (__linux__)) || defined (_UITHREADS) ) && \
254 !defined(_STLP_PTHREADS)
255# define _STLP_UITHREADS
257# define _STLP_PTHREADS
259# define _STLP_THREADS_DEFINED
262#if (defined (_REENTRANT) || defined (_THREAD_SAFE)) && !defined (_STLP_THREADS)
263# define _STLP_THREADS
266#ifndef _STLP_STATIC_MUTEX
267# define _STLP_STATIC_MUTEX _STLP_mutex_base
270#if (defined (_MFC_VER) || defined (_AFXDLL)) && !defined (_STLP_USE_MFC)
271# define _STLP_USE_MFC 1
274#if defined (_STLP_THREADS)
275# define _STLP_VOLATILE volatile
277# define _STLP_VOLATILE
280#if !defined (_STLP_USE_NEW_C_HEADERS) && !defined (_STLP_HAS_NO_NEW_C_HEADERS)
281# define _STLP_USE_NEW_C_HEADERS
284#if defined (_STLP_NO_NEW_C_HEADERS)
285# undef _STLP_USE_NEW_C_HEADERS
288#if defined (_STLP_BASE_TYPEDEF_BUG)
289# undef _STLP_BASE_TYPEDEF_OUTSIDE_BUG
290# define _STLP_BASE_TYPEDEF_OUTSIDE_BUG 1
293#if defined (_STLP_NESTED_TYPE_PARAM_BUG)
294# define _STLP_GLOBAL_NESTED_RETURN_TYPE_PARAM_BUG
298#ifdef _STLP_INLINE_STRING_LITERAL_BUG
299# define _STLP_FIX_LITERAL_BUG(__x) __x = __x;
301# define _STLP_FIX_LITERAL_BUG(__x)
304#if defined (_STLP_NON_TYPE_TMPL_PARAM_BUG)
305# undef _STLP_NO_DEFAULT_NON_TYPE_PARAM
306# define _STLP_NO_DEFAULT_NON_TYPE_PARAM 1
309#if !defined (_STLP_STATIC_ASSERT)
313# define _STLP_STATIC_ASSERT(expr) typedef char __static_assert[expr ? 1 : -1];
317#ifndef _STLP_MPWFIX_TRY
318# define _STLP_MPWFIX_TRY
320#ifndef _STLP_MPWFIX_CATCH
321# define _STLP_MPWFIX_CATCH
323#ifndef _STLP_MPWFIX_CATCH_ACTION
324# define _STLP_MPWFIX_CATCH_ACTION(action)
327#if !defined (_STLP_WEAK)
332#if defined (_STLP_LIMITED_DEFAULT_TEMPLATES)
333# define _STLP_DFL_TMPL_PARAM( classname, defval ) class classname
335# if !defined (_STLP_DEFAULT_TYPE_PARAM)
336# define _STLP_DEFAULT_TYPE_PARAM 1
338# define _STLP_DFL_TMPL_PARAM( classname, defval ) class classname = defval
341#if defined (_STLP_LIMITED_DEFAULT_TEMPLATES)
342# define _STLP_DEFAULT_PAIR_ALLOCATOR_SELECT(_Key, _Tp ) class _Alloc
344# define _STLP_DEFAULT_PAIR_ALLOCATOR_SELECT(_Key, _Tp ) \
345 class _Alloc = allocator< pair < _Key, _Tp > >
349#if defined (_STLP_DEFAULT_TYPE_PARAM)
350# define _STLP_DFL_TYPE_PARAM( classname, defval ) class classname = defval
351# define _STLP_DFL_NON_TYPE_PARAM(type,name,val) type name = val
353# define _STLP_DFL_TYPE_PARAM( classname, defval ) class classname
354# define _STLP_DFL_NON_TYPE_PARAM(type,name,val) type name
359#ifdef _STLP_NO_WCHAR_T
360# ifndef _STLP_NO_NATIVE_WIDE_STREAMS
361# define _STLP_NO_NATIVE_WIDE_STREAMS 1
364# define _STLP_HAS_WCHAR_T 1
367#if !defined (_STLP_NO_AT_MEMBER_FUNCTION)
368# define _STLP_CAN_THROW_RANGE_ERRORS 1
372#if defined (_STLP_DEBUG)
373# define _STLP_NON_DBG_NAME(X) _NonDbg_##X
377#if defined (_STLP_USE_PTR_SPECIALIZATIONS)
378# define _STLP_PTR_IMPL_NAME(X) _Impl_##X
381#if defined (_STLP_USE_MSVC6_MEM_T_BUG_WORKAROUND) || \
382 defined (_STLP_SIGNAL_RUNTIME_COMPATIBILITY) || defined (_STLP_CHECK_RUNTIME_COMPATIBILITY)
383# define _STLP_NO_MEM_T_NAME(X) _NoMemT_##X
387#if defined (_STLP_HAS_NO_NEW_C_HEADERS) && !defined (_STLP_VENDOR_GLOBAL_CSTD)
388# define _STLP_VENDOR_GLOBAL_CSTD 1
397#if !defined (_STLP_HAS_NO_NAMESPACES)
400# if defined (_STLP_WHOLE_NATIVE_STD)
401# define _STLP_IMPORT_VENDOR_STD 1
407# if defined (_STLP_USE_NAMESPACES) && (defined(_STLP_USE_OWN_NAMESPACE) || defined (_STLP_VENDOR_GLOBAL_CSTD))
408# define _STLP_IMPORT_VENDOR_CSTD 1
411# if defined (_STLP_NO_USING_FOR_GLOBAL_FUNCTIONS) && !defined (_STLP_DO_IMPORT_CSTD_FUNCTIONS)
412# define _STLP_NO_CSTD_FUNCTION_IMPORTS
415# define _STLP_USING_NAMESPACE(x) using namespace x ;
421# if defined (_STLP_VENDOR_GLOBAL_STD)
422# define _STLP_VENDOR_STD
424# define _STLP_VENDOR_STD std
428# if defined (_STLP_VENDOR_GLOBAL_CSTD) || !defined(_STLP_USE_NEW_C_HEADERS)
430# define _STLP_VENDOR_CSTD
431# define _STLP_USING_VENDOR_CSTD
433# define _STLP_VENDOR_CSTD _STLP_VENDOR_STD
434# define _STLP_USING_VENDOR_CSTD _STLP_USING_NAMESPACE(_STLP_VENDOR_CSTD)
437# if !defined (_STLP_VENDOR_EXCEPT_STD)
438# if defined (_STLP_VENDOR_GLOBAL_EXCEPT_STD)
439# define _STLP_VENDOR_EXCEPT_STD
441# define _STLP_VENDOR_EXCEPT_STD _STLP_VENDOR_STD
444# define _STLP_OLD_IO_NAMESPACE
445# if !defined (_STLP_VENDOR_MB_NAMESPACE)
446# define _STLP_VENDOR_MB_NAMESPACE _STLP_VENDOR_CSTD
450# define _STLP_VENDOR_STD
451# define _STLP_VENDOR_CSTD
452# define _STLP_USING_NAMESPACE(x)
453# define _STLP_USING_VENDOR_CSTD
454# define _STLP_VENDOR_EXCEPT_STD
457#if defined (_STLP_USE_NAMESPACES)
459# if defined (_STLP_USE_OWN_NAMESPACE)
460# if !defined (_STLP_STD_NAME)
461# if !defined (_STLP_DEBUG)
462# if !defined (_STLP_USING_CROSS_NATIVE_RUNTIME_LIB)
463# ifndef _STLP_THREADS
464# define _STLP_STD_NAME stlpmtx_std
466# define _STLP_STD_NAME stlp_std
469# ifndef _STLP_THREADS
470# define _STLP_STD_NAME stlpxmtx_std
472# define _STLP_STD_NAME stlpx_std
481# if !defined (_STLP_USING_CROSS_NATIVE_RUNTIME_LIB)
482# ifndef _STLP_THREADS
483# define _STLP_STD_NAME stlpdmtx_std
485# define _STLP_STD_NAME stlpd_std
488# ifndef _STLP_THREADS
489# define _STLP_STD_NAME stlpdxmtx_std
491# define _STLP_STD_NAME stlpdx_std
498# define _STLP_STD_NAME std
501# define _STLP_BEGIN_NAMESPACE namespace _STLP_STD_NAME {
502# define _STLP_BEGIN_TR1_NAMESPACE namespace tr1 {
503# define _STLP_END_NAMESPACE }
506# if defined (_STLP_NO_RELOPS_NAMESPACE)
507# define _STLP_BEGIN_RELOPS_NAMESPACE _STLP_BEGIN_NAMESPACE namespace rel_ops {}
508# define _STLP_END_RELOPS_NAMESPACE }
511# define _STLP_BEGIN_RELOPS_NAMESPACE _STLP_BEGIN_NAMESPACE namespace rel_ops {
512# define _STLP_END_RELOPS_NAMESPACE } }
513# define _STLP_USE_SEPARATE_RELOPS_NAMESPACE
516# define _STLP_STD ::_STLP_STD_NAME
517# if !defined (_STLP_TR1)
518# define _STLP_TR1 _STLP_STD::tr1::
521# if !defined (_STLP_DONT_USE_PRIV_NAMESPACE)
522# define _STLP_PRIV_NAME priv
523# define _STLP_PRIV _STLP_STD::_STLP_PRIV_NAME::
524# define _STLP_MOVE_TO_PRIV_NAMESPACE namespace _STLP_PRIV_NAME {
525# define _STLP_MOVE_TO_STD_NAMESPACE }
527# if !defined (_STLP_PRIV)
528# define _STLP_PRIV _STLP_STD::
530# define _STLP_MOVE_TO_PRIV_NAMESPACE
531# define _STLP_MOVE_TO_STD_NAMESPACE
543#undef __STLPORT_NAMESPACE
544#define __STLPORT_NAMESPACE _STLP_STD_NAME
551# define _STLP_BEGIN_NAMESPACE
552# define _STLP_BEGIN_TR1_NAMESPACE
553# define _STLP_END_NAMESPACE
554# define _STLP_MOVE_TO_PRIV_NAMESPACE
555# define _STLP_MOVE_TO_STD_NAMESPACE
560# if !defined (_STLP_NO_RELOPS_NAMESPACE)
561# define _STLP_USE_SEPARATE_RELOPS_NAMESPACE
563# define _STLP_BEGIN_RELOPS_NAMESPACE
564# define _STLP_END_RELOPS_NAMESPACE
565# undef _STLP_USE_OWN_NAMESPACE
568#define STLPORT_CSTD _STLP_VENDOR_CSTD
569#define STLPORT _STLP_STD_NAME
571#if defined(_STLP_BOGUS_TEMPLATE_TYPE_MATCHING_BUG)
572# define _STLP_SIMPLE_TYPE(T) _stl_trivial_proxy<T>
574# define _STLP_SIMPLE_TYPE(T) T
578# define _STLP_NO_DRAND48
582#define __C_CAST(__x, __y) ((__x)(__y))
583#ifndef _STLP_NO_NEW_STYLE_CASTS
584# define __CONST_CAST(__x,__y) const_cast<__x>(__y)
585# define __STATIC_CAST(__x,__y) static_cast<__x>(__y)
586# define __REINTERPRET_CAST(__x,__y) reinterpret_cast<__x>(__y)
588# define __STATIC_CAST(__x,__y) __C_CAST(__x, __y)
589# define __CONST_CAST(__x,__y) __C_CAST(__x, __y)
590# define __REINTERPRET_CAST(__x,__y) __C_CAST(__x, __y)
593#if defined (_STLP_NEED_TYPENAME) && ! defined (typename)
597#if defined (_STLP_NEED_TYPENAME) || defined (_STLP_NO_TYPENAME_ON_RETURN_TYPE )
598# define _STLP_TYPENAME_ON_RETURN_TYPE
600# define _STLP_TYPENAME_ON_RETURN_TYPE typename
603#ifdef _STLP_NO_TYPENAME_IN_TEMPLATE_HEADER
604# define _STLP_HEADER_TYPENAME
606# define _STLP_HEADER_TYPENAME typename
609#ifdef _STLP_NO_TYPENAME_BEFORE_NAMESPACE
610# define _STLP_TYPENAME
612# define _STLP_TYPENAME typename
615#ifndef _STLP_NO_MEMBER_TEMPLATE_KEYWORD
616# define _STLP_TEMPLATE template
618# define _STLP_TEMPLATE
621#if defined (_STLP_USE_CONTAINERS_EXTENSION)
622# define _STLP_KEY_TYPE_FOR_CONT_EXT(type)
623# define _STLP_TEMPLATE_FOR_CONT_EXT template <class _KT>
625# define _STLP_KEY_TYPE_FOR_CONT_EXT(type) typedef type _KT;
626# define _STLP_TEMPLATE_FOR_CONT_EXT
629#if defined (_STLP_NEED_EXPLICIT) && !defined (explicit)
633#if !defined (_STLP_NEED_MUTABLE)
634# define _STLP_MUTABLE(type, x) x
636# define _STLP_MUTABLE(type, x) __CONST_CAST(type*, this)->x
640#if defined (_STLP_NO_SIGNED_BUILTINS)
645#if defined (_STLP_LOOP_INLINE_PROBLEMS)
646# define _STLP_INLINE_LOOP
648# define _STLP_INLINE_LOOP inline
651#ifndef _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX
652# define _STLP_TEMPLATE_NULL template<>
654# define _STLP_TEMPLATE_NULL
657#ifdef _STLP_FUNCTION_TMPL_PARTIAL_ORDER
658# define _STLP_OPERATOR_TEMPLATE
660# define _STLP_OPERATOR_TEMPLATE _STLP_TEMPLATE_NULL
663#ifndef _STLP_CLASS_PARTIAL_SPECIALIZATION
665# if !defined (_STLP_DONT_SIMULATE_PARTIAL_SPEC_FOR_TYPE_TRAITS)
666# define _STLP_SIMULATE_PARTIAL_SPEC_FOR_TYPE_TRAITS
669# if (defined (_STLP_NESTED_TYPE_PARAM_BUG) || !defined (_STLP_SIMULATE_PARTIAL_SPEC_FOR_TYPE_TRAITS))
670# if ! defined ( _STLP_USE_OLD_HP_ITERATOR_QUERIES )
671# define _STLP_USE_OLD_HP_ITERATOR_QUERIES
673# elif defined ( _STLP_NO_ANACHRONISMS )
674# undef _STLP_USE_OLD_HP_ITERATOR_QUERIES
678#ifndef _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS
679# define _STLP_NULL_TMPL_ARGS <>
681# define _STLP_NULL_TMPL_ARGS
684#if !defined (_STLP_ALLOCATOR_TYPE_DFL)
685# if defined (_STLP_DONT_SUP_DFLT_PARAM)
686# define _STLP_NEEDS_EXTRA_TEMPLATE_CONSTRUCTORS
688# if defined (_STLP_NEEDS_EXTRA_TEMPLATE_CONSTRUCTORS)
689# define _STLP_ALLOCATOR_TYPE_DFL
691# define _STLP_ALLOCATOR_TYPE_DFL = allocator_type()
698#if defined (_STLP_DEF_CONST_DEF_PARAM_BUG)
699# define _STLP_DONT_SUP_DFLT_PARAM 1
702#if defined (__SGI_STL_NO_ARROW_OPERATOR) && ! defined (_STLP_NO_ARROW_OPERATOR)
703# define _STLP_NO_ARROW_OPERATOR
706#if !defined (_STLP_CLASS_PARTIAL_SPECIALIZATION)
707# if !(defined (_STLP_NO_ARROW_OPERATOR)) && \
708 !defined (_STLP_NO_MSVC50_COMPATIBILITY) && !defined (_STLP_MSVC50_COMPATIBILITY)
710# define _STLP_MSVC50_COMPATIBILITY 1
714#if defined ( _STLP_CLASS_PARTIAL_SPECIALIZATION )
715# if (defined(__IBMCPP__) && (500 <= __IBMCPP__) && (__IBMCPP__ < 600) )
716# define _STLP_DECLARE_REVERSE_ITERATORS(__reverse_iterator) \
717 typedef typename _STLP_STD :: reverse_iterator<const_iterator> const_reverse_iterator; \
718 typedef typename _STLP_STD :: reverse_iterator<iterator> reverse_iterator
719# elif (defined (__sgi) && ! defined (__GNUC__)) || defined (__SUNPRO_CC) || defined (__xlC__)
720# define _STLP_DECLARE_REVERSE_ITERATORS(__reverse_iterator) \
721 typedef _STLP_STD:: _STLP_TEMPLATE reverse_iterator<const_iterator> const_reverse_iterator; \
722 typedef _STLP_STD:: _STLP_TEMPLATE reverse_iterator<iterator> reverse_iterator
724# define _STLP_DECLARE_REVERSE_ITERATORS(__reverse_iterator) \
725 typedef _STLP_STD::reverse_iterator<const_iterator> const_reverse_iterator; \
726 typedef _STLP_STD::reverse_iterator<iterator> reverse_iterator
729# if defined (_STLP_MSVC50_COMPATIBILITY)
730# define _STLP_DECLARE_REVERSE_ITERATORS(__reverse_iterator) \
731 typedef _STLP_STD::__reverse_iterator<const_iterator, value_type, const_reference, \
732 const_pointer, difference_type> const_reverse_iterator; \
733 typedef _STLP_STD::__reverse_iterator<iterator, value_type, reference, pointer, difference_type> \
736# define _STLP_DECLARE_REVERSE_ITERATORS(__reverse_iterator) \
737 typedef _STLP_STD::__reverse_iterator<const_iterator, value_type, const_reference, \
738 difference_type> const_reverse_iterator; \
739 typedef _STLP_STD::__reverse_iterator<iterator, value_type, \
740 reference, difference_type> \
745#define _STLP_DECLARE_BIDIRECTIONAL_REVERSE_ITERATORS \
746 _STLP_DECLARE_REVERSE_ITERATORS(reverse_bidirectional_iterator)
747#define _STLP_DECLARE_RANDOM_ACCESS_REVERSE_ITERATORS \
748 _STLP_DECLARE_REVERSE_ITERATORS(reverse_iterator)
750#define __IMPORT_CONTAINER_TYPEDEFS(_Super) \
751 typedef typename _Super::value_type value_type; \
752 typedef typename _Super::size_type size_type; \
753 typedef typename _Super::difference_type difference_type; \
754 typedef typename _Super::reference reference; \
755 typedef typename _Super::const_reference const_reference; \
756 typedef typename _Super::pointer pointer; \
757 typedef typename _Super::const_pointer const_pointer; \
758 typedef typename _Super::allocator_type allocator_type;
761#define __IMPORT_ITERATORS(_Super) \
762 typedef typename _Super::iterator iterator; \
763 typedef typename _Super::const_iterator const_iterator;
765#define __IMPORT_REVERSE_ITERATORS(_Super) \
766 typedef typename _Super::const_reverse_iterator const_reverse_iterator; \
767 typedef typename _Super::reverse_iterator reverse_iterator;
769#define __IMPORT_SUPER_COPY_ASSIGNMENT(__derived_name, _Self, _SUPER) \
770 __derived_name(const _Super& __x) : _SUPER(__x) {} \
771 _Self& operator=(const _Super& __x) { \
772 *(_Super*)this = __x; \
775 __derived_name(const _Self& __x) : _SUPER(__x) {} \
776 _Self& operator=(const _Self& __x) { \
777 *(_Super*)this = __x; \
781#define __IMPORT_WITH_ITERATORS(_Super) \
782 __IMPORT_CONTAINER_TYPEDEFS(_Super) __IMPORT_ITERATORS(_Super)
784#define __IMPORT_WITH_REVERSE_ITERATORS(_Super) \
785 __IMPORT_WITH_ITERATORS(_Super) __IMPORT_REVERSE_ITERATORS(_Super)
787#if defined (_STLP_TRIVIAL_CONSTRUCTOR_BUG)
788# define __TRIVIAL_CONSTRUCTOR(__type) __type() {}
790# define __TRIVIAL_CONSTRUCTOR(__type)
793#if defined (_STLP_TRIVIAL_DESTRUCTOR_BUG)
794# define __TRIVIAL_DESTRUCTOR(__type) ~__type() {}
796# define __TRIVIAL_DESTRUCTOR(__type)
799#define __TRIVIAL_STUFF(__type) \
800 __TRIVIAL_CONSTRUCTOR(__type) __TRIVIAL_DESTRUCTOR(__type)
802#if defined (_STLP_STATIC_CONST_INIT_BUG)
803# define _STLP_STATIC_CONSTANT(__type, __assignment) enum { __assignment }
805# define _STLP_STATIC_CONSTANT(__type, __assignment) static const __type __assignment
808#if defined (_STLP_HAS_NO_EXCEPTIONS)
809# define _STLP_NO_EXCEPTIONS
812#if !defined (_STLP_DONT_USE_EXCEPTIONS) && !defined (_STLP_NO_EXCEPTIONS) && !defined (_STLP_USE_EXCEPTIONS)
813# define _STLP_USE_EXCEPTIONS
816#if defined (_STLP_USE_EXCEPTIONS)
817# define _STLP_TRY try
818# define _STLP_CATCH_ALL catch(...)
820# define _STLP_THROW(x) throw x
822# define _STLP_RETHROW throw
824# define _STLP_UNWIND(action) catch(...) { action; throw; }
826# ifdef _STLP_THROW_RETURN_BUG
827# define _STLP_RET_AFTER_THROW(data) return data;
829# define _STLP_RET_AFTER_THROW(data)
832# if !defined (_STLP_THROWS)
833# define _STLP_THROWS(x) throw(x)
835# if !defined (_STLP_NOTHROW)
836# define _STLP_NOTHROW throw()
840# define _STLP_CATCH_ALL if (false)
842# define _STLP_THROW(x)
844# define _STLP_RETHROW {}
845# define _STLP_UNWIND(action)
846# define _STLP_THROWS(x)
847# define _STLP_NOTHROW
848# define _STLP_RET_AFTER_THROW(data)
856#if !defined (_STLP_NO_EXCEPTIONS) && !defined (_STLP_NO_EXCEPTION_SPEC)
857# define _STLP_THROWS_INHERENTLY(x) throw x
858# define _STLP_NOTHROW_INHERENTLY throw()
860# define _STLP_THROWS_INHERENTLY(x)
861# define _STLP_NOTHROW_INHERENTLY
868#if defined (_STLP_NORETURN_FUNCTION) && !defined (_STLP_NO_EXCEPTIONS) && \
869 !defined (_STLP_FUNCTION_THROWS)
870# define _STLP_FUNCTION_THROWS _STLP_NORETURN_FUNCTION
872# define _STLP_FUNCTION_THROWS
875#if defined(_STLP_NO_BOOL)
876# if (defined (__IBMCPP__) && (__IBMCPP__ < 400)) && ! defined (_AIX)
877# include <isynonym.hpp>
878# if defined (__OS400__)
880# elif !( defined (__xlC__) || defined (_AIX))
884# if defined(_STLP_YVALS_H)
887# if defined (_STLP_DONT_USE_BOOL_TYPEDEF)
897# define _STLP_BOOL_KEYWORD 1
901#ifndef _STLP_SHRED_BYTE
903# define _STLP_SHRED_BYTE 0xA3
907#ifndef _STLP_IMPORT_DECLSPEC
908# define _STLP_IMPORT_DECLSPEC
912#ifndef _STLP_EXPORT_TEMPLATE_KEYWORD
913# define _STLP_EXPORT_TEMPLATE_KEYWORD
915#ifndef _STLP_IMPORT_TEMPLATE_KEYWORD
916# define _STLP_IMPORT_TEMPLATE_KEYWORD
919#if !defined (_STLP_NO_CONST_IN_PAIR)
920# define _STLP_CONST const
925#ifdef _STLP_USE_NO_IOSTREAMS
930# undef _STLP_USE_DECLSPEC
935# undef _STLP_USE_DYNAMIC_LIB
938#if defined (_STLP_DLLEXPORT_NEEDS_PREDECLARATION) && defined (_STLP_USE_DECLSPEC)
939# if ! defined (_STLP_USE_TEMPLATE_EXPORT)
941# define _STLP_USE_TEMPLATE_EXPORT
943# if defined (_STLP_DESIGNATED_DLL) && ! defined (_STLP_NO_FORCE_INSTANTIATE)
944# define _STLP_NO_FORCE_INSTANTIATE
948#if defined (_STLP_DESIGNATED_DLL)
949# define _STLP_EXPORT _STLP_EXPORT_TEMPLATE_KEYWORD
951# define _STLP_EXPORT _STLP_IMPORT_TEMPLATE_KEYWORD
954#ifndef _STLP_EXPORT_TEMPLATE
955# define _STLP_EXPORT_TEMPLATE _STLP_EXPORT template
958#if defined (_STLP_USE_DECLSPEC)
960# ifndef _STLP_EXPORT_DECLSPEC
961# define _STLP_EXPORT_DECLSPEC
963# ifndef _STLP_IMPORT_DECLSPEC
964# define _STLP_IMPORT_DECLSPEC
966# ifndef _STLP_CLASS_EXPORT_DECLSPEC
967# define _STLP_CLASS_EXPORT_DECLSPEC
969# ifndef _STLP_CLASS_IMPORT_DECLSPEC
970# define _STLP_CLASS_IMPORT_DECLSPEC
972# if defined (_STLP_DESIGNATED_DLL)
973# define _STLP_DECLSPEC _STLP_EXPORT_DECLSPEC
974# define _STLP_CLASS_DECLSPEC _STLP_CLASS_EXPORT_DECLSPEC
976# define _STLP_DECLSPEC _STLP_IMPORT_DECLSPEC
977# define _STLP_CLASS_DECLSPEC _STLP_CLASS_IMPORT_DECLSPEC
982# define _STLP_DECLSPEC
983# define _STLP_CLASS_DECLSPEC
987#define _STLP_EXPORT_TEMPLATE_CLASS _STLP_EXPORT template class _STLP_CLASS_DECLSPEC
989#if defined (_STLP_NEED_ADDITIONAL_STATIC_DECLSPEC)
990# define _STLP_STATIC_DECLSPEC _STLP_DECLSPEC
992# define _STLP_STATIC_DECLSPEC
995#if !defined (_STLP_CALL)
999#ifndef _STLP_USE_NO_IOSTREAMS
1001# if defined (__DECCXX) && ! defined (__USE_STD_IOSTREAM)
1002# define __USE_STD_IOSTREAM
1007# if defined (__BUILDING_STLPORT) || defined (_STLP_NO_FORCE_INSTANTIATE) || !defined(_STLP_NO_CUSTOM_IO)
1008# define _STLP_EXPOSE_STREAM_IMPLEMENTATION 1
1013# if defined (__BUILDING_STLPORT) || defined (_STLP_NO_FORCE_INSTANTIATE)
1014# undef _STLP_EXPOSE_GLOBALS_IMPLEMENTATION
1015# define _STLP_EXPOSE_GLOBALS_IMPLEMENTATION 1
1020# define _STLP_EXPOSE_GLOBALS_IMPLEMENTATION
1023#ifdef _STLP_PARTIAL_SPEC_NEEDS_TEMPLATE_ARGS
1024# define _STLP_PSPEC2(t1,t2) < t1,t2 >
1025# define _STLP_PSPEC3(t1,t2,t3) < t1,t2,t3 >
1027# define _STLP_PSPEC2(t1,t2)
1028# define _STLP_PSPEC3(t1,t2,t3)
1033#if !defined(_STLP_DONT_USE_PARTIAL_SPEC_WRKD) &&\
1034 (!defined(_STLP_CLASS_PARTIAL_SPECIALIZATION) || !defined(_STLP_FUNCTION_TMPL_PARTIAL_ORDER))
1035# define _STLP_USE_PARTIAL_SPEC_WORKAROUND
1038#ifdef _STLP_USE_SEPARATE_RELOPS_NAMESPACE
1039# define _STLP_RELOPS_OPERATORS(_TMPL, _TP) \
1040_TMPL inline bool _STLP_CALL operator!=(const _TP& __x, const _TP& __y) {return !(__x == __y);}\
1041_TMPL inline bool _STLP_CALL operator>(const _TP& __x, const _TP& __y) {return __y < __x;}\
1042_TMPL inline bool _STLP_CALL operator<=(const _TP& __x, const _TP& __y) { return !(__y < __x);}\
1043_TMPL inline bool _STLP_CALL operator>=(const _TP& __x, const _TP& __y) { return !(__x < __y);}
1045# define _STLP_RELOPS_OPERATORS(_TMPL, _TP)
1048#if defined ( _STLP_USE_ABBREVS )
1053#define _STLP_ARRAY_SIZE(A) sizeof(A) / sizeof(A[0])
1054#define _STLP_ARRAY_AND_SIZE(A) A, sizeof(A) / sizeof(A[0])
1056#if !defined (_STLP_MARK_PARAMETER_AS_UNUSED)
1057# define _STLP_MARK_PARAMETER_AS_UNUSED(X) (void*)X;
1060#if defined (_STLP_CHECK_RUNTIME_COMPATIBILITY)
1061# if defined (_STLP_USE_NO_IOSTREAMS)
1062# undef _STLP_CHECK_RUNTIME_COMPATIBILITY
1065#if defined (__cplusplus)
1073#undef _STLP_DONT_USE_BOOL_TYPEDEF
1075#undef _STLP_LOOP_INLINE_PROBLEMS
1076#undef _STLP_NEED_EXPLICIT
1077#undef _STLP_NEED_TYPENAME
1078#undef _STLP_NO_NEW_STYLE_CASTS
1079#undef __AUTO_CONFIGURED