1997-08-22 06:57:35 +08:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994
|
|
|
|
* Hewlett-Packard Company
|
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, distribute and sell this software
|
|
|
|
* and its documentation for any purpose is hereby granted without fee,
|
|
|
|
* provided that the above copyright notice appear in all copies and
|
|
|
|
* that both that copyright notice and this permission notice appear
|
|
|
|
* in supporting documentation. Hewlett-Packard Company makes no
|
|
|
|
* representations about the suitability of this software for any
|
|
|
|
* purpose. It is provided "as is" without express or implied warranty.
|
|
|
|
*
|
|
|
|
* Copyright (c) 1997
|
|
|
|
* Silicon Graphics
|
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, distribute and sell this software
|
|
|
|
* and its documentation for any purpose is hereby granted without fee,
|
|
|
|
* provided that the above copyright notice appear in all copies and
|
|
|
|
* that both that copyright notice and this permission notice appear
|
|
|
|
* in supporting documentation. Silicon Graphics makes no
|
|
|
|
* representations about the suitability of this software for any
|
|
|
|
* purpose. It is provided "as is" without express or implied warranty.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __STL_CONFIG_H
|
|
|
|
# define __STL_CONFIG_H
|
|
|
|
|
1998-09-03 01:25:15 +08:00
|
|
|
// Flags:
|
|
|
|
// * __STL_NO_BOOL: defined if the compiler doesn't have bool as a builtin
|
|
|
|
// type.
|
|
|
|
// * __STL_HAS_WCHAR_T: defined if the compier has wchar_t as a builtin type.
|
1999-02-04 23:51:19 +08:00
|
|
|
// * __STL_NO_DRAND48: defined if the compiler doesn't have the drand48
|
1998-09-03 01:25:15 +08:00
|
|
|
// function.
|
|
|
|
// * __STL_STATIC_TEMPLATE_MEMBER_BUG: defined if the compiler can't handle
|
|
|
|
// static members of template classes.
|
|
|
|
// * __STL_CLASS_PARTIAL_SPECIALIZATION: defined if the compiler supports
|
|
|
|
// partial specialization of template classes.
|
1999-02-04 23:51:19 +08:00
|
|
|
// * __STL_PARTIAL_SPECIALIZATION_SYNTAX: defined if the compiler
|
1998-09-03 01:25:15 +08:00
|
|
|
// supports partial specialization syntax for full specialization of
|
1999-02-04 23:51:19 +08:00
|
|
|
// class templates. (Even if it doesn't actually support partial
|
1998-09-03 01:25:15 +08:00
|
|
|
// specialization itself.)
|
|
|
|
// * __STL_FUNCTION_TMPL_PARTIAL_ORDER: defined if the compiler supports
|
|
|
|
// partial ordering of function templates. (a.k.a partial specialization
|
|
|
|
// of function templates.)
|
|
|
|
// * __STL_MEMBER_TEMPLATES: defined if the compiler supports template
|
|
|
|
// member functions of classes.
|
1999-02-04 23:51:19 +08:00
|
|
|
// * __STL_MEMBER_TEMPLATE_CLASSES: defined if the compiler supports
|
1998-09-03 01:25:15 +08:00
|
|
|
// nested classes that are member templates of other classes.
|
1999-02-04 23:51:19 +08:00
|
|
|
// * __STL_EXPLICIT_FUNCTION_TMPL_ARGS: defined if the compiler
|
1998-09-03 01:25:15 +08:00
|
|
|
// supports calling a function template by providing its template
|
|
|
|
// arguments explicitly.
|
|
|
|
// * __STL_LIMITED_DEFAULT_TEMPLATES: defined if the compiler is unable
|
|
|
|
// to handle default template parameters that depend on previous template
|
|
|
|
// parameters.
|
|
|
|
// * __STL_NON_TYPE_TMPL_PARAM_BUG: defined if the compiler has trouble with
|
|
|
|
// function template argument deduction for non-type template parameters.
|
|
|
|
// * __SGI_STL_NO_ARROW_OPERATOR: defined if the compiler is unable
|
|
|
|
// to support the -> operator for iterators.
|
|
|
|
// * __STL_USE_EXCEPTIONS: defined if the compiler (in the current compilation
|
|
|
|
// mode) supports exceptions.
|
|
|
|
// * __STL_USE_NAMESPACES: defined if the compiler has the necessary
|
|
|
|
// support for namespaces.
|
|
|
|
// * __STL_NO_EXCEPTION_HEADER: defined if the compiler does not have a
|
|
|
|
// standard-conforming header <exception>.
|
|
|
|
// * __STL_SGI_THREADS: defined if this is being compiled for an SGI IRIX
|
1999-02-04 23:51:19 +08:00
|
|
|
// system in multithreaded mode, using native SGI threads instead of
|
1998-09-03 01:25:15 +08:00
|
|
|
// pthreads.
|
|
|
|
// * __STL_WIN32THREADS: defined if this is being compiled on a WIN32
|
|
|
|
// compiler in multithreaded mode.
|
|
|
|
// * __STL_LONG_LONG if the compiler has long long and unsigned long long
|
1999-02-04 23:51:19 +08:00
|
|
|
// types. (They're not in the C++ standard, but they are expected to be
|
1998-09-03 01:25:15 +08:00
|
|
|
// included in the forthcoming C9X standard.)
|
|
|
|
|
|
|
|
|
|
|
|
// User-settable macros that control compilation:
|
|
|
|
// * __STL_USE_SGI_ALLOCATORS: if defined, then the STL will use older
|
|
|
|
// SGI-style allocators, instead of standard-conforming allocators,
|
|
|
|
// even if the compiler supports all of the language features needed
|
|
|
|
// for standard-conforming allocators.
|
|
|
|
// * __STL_NO_NAMESPACES: if defined, don't put the library in namespace
|
|
|
|
// std, even if the compiler supports namespaces.
|
|
|
|
// * __STL_ASSERTIONS: if defined, then enable runtime checking through the
|
|
|
|
// __stl_assert macro.
|
|
|
|
// * _PTHREADS: if defined, use Posix threads for multithreading support.
|
1999-02-04 23:51:19 +08:00
|
|
|
// * _NOTHREADS: if defined, don't use any multithreading support.
|
1998-09-03 01:25:15 +08:00
|
|
|
|
|
|
|
|
|
|
|
// Other macros defined by this file:
|
|
|
|
|
|
|
|
// * bool, true, and false, if __STL_NO_BOOL is defined.
|
|
|
|
// * typename, as a null macro if it's not already a keyword.
|
|
|
|
// * explicit, as a null macro if it's not already a keyword.
|
|
|
|
// * namespace-related macros (__STD, __STL_BEGIN_NAMESPACE, etc.)
|
|
|
|
// * exception-related macros (__STL_TRY, __STL_UNWIND, etc.)
|
|
|
|
// * __stl_assert, either as a test or as a null macro, depending on
|
|
|
|
// whether or not __STL_ASSERTIONS is defined.
|
1997-08-22 06:57:35 +08:00
|
|
|
|
1998-02-20 19:13:44 +08:00
|
|
|
#ifdef _PTHREADS
|
|
|
|
# define __STL_PTHREADS
|
|
|
|
#endif
|
1999-02-04 23:51:19 +08:00
|
|
|
#ifdef _SOLTHREADS
|
|
|
|
# define __STL_SOLTHREADS
|
|
|
|
#endif
|
1998-02-20 19:13:44 +08:00
|
|
|
|
1997-08-22 06:57:35 +08:00
|
|
|
# if defined(__sgi) && !defined(__GNUC__)
|
|
|
|
# if !defined(_BOOL)
|
1998-09-03 01:25:15 +08:00
|
|
|
# define __STL_NO_BOOL
|
|
|
|
# endif
|
|
|
|
# if defined(_WCHAR_T_IS_KEYWORD)
|
1999-02-04 23:51:19 +08:00
|
|
|
# define __STL_HAS_WCHAR_T
|
1997-08-22 06:57:35 +08:00
|
|
|
# endif
|
|
|
|
# if !defined(_TYPENAME_IS_KEYWORD)
|
|
|
|
# define __STL_NEED_TYPENAME
|
|
|
|
# endif
|
|
|
|
# ifdef _PARTIAL_SPECIALIZATION_OF_CLASS_TEMPLATES
|
|
|
|
# define __STL_CLASS_PARTIAL_SPECIALIZATION
|
|
|
|
# endif
|
|
|
|
# ifdef _MEMBER_TEMPLATES
|
|
|
|
# define __STL_MEMBER_TEMPLATES
|
1998-09-03 01:25:15 +08:00
|
|
|
# define __STL_MEMBER_TEMPLATE_CLASSES
|
|
|
|
# endif
|
|
|
|
# if defined(_MEMBER_TEMPLATE_KEYWORD)
|
|
|
|
# define __STL_MEMBER_TEMPLATE_KEYWORD
|
|
|
|
# endif
|
|
|
|
# if (_COMPILER_VERSION >= 730) && defined(_MIPS_SIM) && _MIPS_SIM != _ABIO32
|
|
|
|
# define __STL_MEMBER_TEMPLATE_KEYWORD
|
1997-08-22 06:57:35 +08:00
|
|
|
# endif
|
|
|
|
# if !defined(_EXPLICIT_IS_KEYWORD)
|
|
|
|
# define __STL_NEED_EXPLICIT
|
|
|
|
# endif
|
|
|
|
# ifdef __EXCEPTIONS
|
|
|
|
# define __STL_USE_EXCEPTIONS
|
|
|
|
# endif
|
Makefile.in (install): Some of HEADERS come from the stl dir now.
* Makefile.in (install): Some of HEADERS come from the stl dir now.
* algorithm, deque, functional, iterator, list, map, memory, numeric,
queue, set, stack, utility, vector: Now in stl dir.
stl/:
* algo.h, algobase.h, alloc.h, bvector.h, defalloc.h, deque.h,
function.h, hash_map.h, hash_set.h, hashtable.h, heap.h, iterator.h,
list.h, map.h, multimap.h, multiset.h, pair.h, pthread_alloc.h,
rope.h, ropeimpl.h, set.h, slist.h, stack.h, stl_config.h, tempbuf.h,
tree.h, type_traits.h, vector.h: Update to October 27 SGI snapshot.
* algorithm, deque, functional, hash_map, hash_set, iterator, list,
map, memory, numeric, pthread_alloc, queue, rope, set, slist, stack,
stl_algo.h, stl_algobase.h, stl_alloc.h, stl_bvector.h,
stl_construct.h, stl_deque.h, stl_function.h, stl_hash_fun.h,
stl_hash_map.h, stl_hash_set.h, stl_hashtable.h, stl_heap.h,
stl_iterator.h, stl_list.h, stl_map.h, stl_multimap.h, stl_multiset.h,
stl_numeric.h, stl_pair.h, stl_queue.h, stl_raw_storage_iter.h,
stl_relops.h, stl_rope.h, stl_set.h, stl_slist.h, stl_stack.h,
stl_tempbuf.h, stl_tree.h, stl_uninitialized.h, stl_vector.h,
utility, vector: New files in October 27 SGI snapshot.
From-SVN: r16277
1997-11-03 04:28:22 +08:00
|
|
|
# if (_COMPILER_VERSION >= 721) && defined(_NAMESPACES)
|
1998-09-03 01:25:15 +08:00
|
|
|
# define __STL_HAS_NAMESPACES
|
1999-02-04 23:51:19 +08:00
|
|
|
# endif
|
1998-09-03 01:25:15 +08:00
|
|
|
# if (_COMPILER_VERSION < 721)
|
|
|
|
# define __STL_NO_EXCEPTION_HEADER
|
|
|
|
# endif
|
1998-02-20 19:13:44 +08:00
|
|
|
# if !defined(_NOTHREADS) && !defined(__STL_PTHREADS)
|
1997-08-22 06:57:35 +08:00
|
|
|
# define __STL_SGI_THREADS
|
|
|
|
# endif
|
1998-09-03 01:25:15 +08:00
|
|
|
# if defined(_LONGLONG) && defined(_SGIAPI) && _SGIAPI
|
|
|
|
# define __STL_LONG_LONG
|
|
|
|
# endif
|
1997-08-22 06:57:35 +08:00
|
|
|
# endif
|
|
|
|
|
|
|
|
# ifdef __GNUC__
|
1998-02-20 19:13:44 +08:00
|
|
|
# include <_G_config.h>
|
1998-09-03 10:56:35 +08:00
|
|
|
# define __STL_HAS_WCHAR_T
|
1998-02-20 19:13:44 +08:00
|
|
|
# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
|
1997-08-22 06:57:35 +08:00
|
|
|
# define __STL_STATIC_TEMPLATE_MEMBER_BUG
|
|
|
|
# define __STL_NEED_TYPENAME
|
|
|
|
# define __STL_NEED_EXPLICIT
|
|
|
|
# else
|
|
|
|
# define __STL_CLASS_PARTIAL_SPECIALIZATION
|
Makefile.in (install): Some of HEADERS come from the stl dir now.
* Makefile.in (install): Some of HEADERS come from the stl dir now.
* algorithm, deque, functional, iterator, list, map, memory, numeric,
queue, set, stack, utility, vector: Now in stl dir.
stl/:
* algo.h, algobase.h, alloc.h, bvector.h, defalloc.h, deque.h,
function.h, hash_map.h, hash_set.h, hashtable.h, heap.h, iterator.h,
list.h, map.h, multimap.h, multiset.h, pair.h, pthread_alloc.h,
rope.h, ropeimpl.h, set.h, slist.h, stack.h, stl_config.h, tempbuf.h,
tree.h, type_traits.h, vector.h: Update to October 27 SGI snapshot.
* algorithm, deque, functional, hash_map, hash_set, iterator, list,
map, memory, numeric, pthread_alloc, queue, rope, set, slist, stack,
stl_algo.h, stl_algobase.h, stl_alloc.h, stl_bvector.h,
stl_construct.h, stl_deque.h, stl_function.h, stl_hash_fun.h,
stl_hash_map.h, stl_hash_set.h, stl_hashtable.h, stl_heap.h,
stl_iterator.h, stl_list.h, stl_map.h, stl_multimap.h, stl_multiset.h,
stl_numeric.h, stl_pair.h, stl_queue.h, stl_raw_storage_iter.h,
stl_relops.h, stl_rope.h, stl_set.h, stl_slist.h, stl_stack.h,
stl_tempbuf.h, stl_tree.h, stl_uninitialized.h, stl_vector.h,
utility, vector: New files in October 27 SGI snapshot.
From-SVN: r16277
1997-11-03 04:28:22 +08:00
|
|
|
# define __STL_FUNCTION_TMPL_PARTIAL_ORDER
|
1997-09-10 10:29:42 +08:00
|
|
|
# define __STL_MEMBER_TEMPLATES
|
1998-09-03 10:56:35 +08:00
|
|
|
# define __STL_MEMBER_TEMPLATE_CLASSES
|
|
|
|
# define __STL_EXPLICIT_FUNCTION_TMPL_ARGS
|
|
|
|
# define __STL_HAS_NAMESPACES
|
|
|
|
# define __STL_NO_NAMESPACES
|
1998-10-12 01:55:56 +08:00
|
|
|
# define __SGI_STL_USE_AUTO_PTR_CONVERSIONS
|
1999-01-21 01:01:43 +08:00
|
|
|
# define __STL_USE_NAMESPACES
|
1997-08-22 06:57:35 +08:00
|
|
|
# endif
|
1998-06-28 07:51:33 +08:00
|
|
|
/* glibc pre 2.0 is very buggy. We have to disable thread for it.
|
|
|
|
It should be upgraded to glibc 2.0 or later. */
|
|
|
|
# if !defined(_NOTHREADS) && __GLIBC__ >= 2 && defined(_G_USING_THUNKS)
|
1998-02-20 19:13:44 +08:00
|
|
|
# define __STL_PTHREADS
|
1998-09-02 20:33:40 +08:00
|
|
|
# ifdef __STRICT_ANSI__
|
|
|
|
/* Work around a bug in the glibc 2.0.x pthread.h. */
|
|
|
|
# define sigset_t __sigset_t
|
|
|
|
# endif
|
1998-02-20 19:13:44 +08:00
|
|
|
# endif
|
1997-08-22 06:57:35 +08:00
|
|
|
# ifdef __EXCEPTIONS
|
|
|
|
# define __STL_USE_EXCEPTIONS
|
|
|
|
# endif
|
1998-09-03 10:56:35 +08:00
|
|
|
# ifndef __STRICT_ANSI__
|
|
|
|
# define __STL_LONG_LONG
|
|
|
|
# endif
|
1997-08-22 06:57:35 +08:00
|
|
|
# endif
|
|
|
|
|
1999-02-04 23:51:19 +08:00
|
|
|
# if defined(__SUNPRO_CC)
|
1998-09-03 01:25:15 +08:00
|
|
|
# define __STL_NO_BOOL
|
1997-08-22 06:57:35 +08:00
|
|
|
# define __STL_NEED_TYPENAME
|
|
|
|
# define __STL_NEED_EXPLICIT
|
|
|
|
# define __STL_USE_EXCEPTIONS
|
|
|
|
# endif
|
|
|
|
|
|
|
|
# if defined(__COMO__)
|
|
|
|
# define __STL_MEMBER_TEMPLATES
|
1998-09-03 01:25:15 +08:00
|
|
|
# define __STL_MEMBER_TEMPLATE_CLASSES
|
1997-08-22 06:57:35 +08:00
|
|
|
# define __STL_CLASS_PARTIAL_SPECIALIZATION
|
|
|
|
# define __STL_USE_EXCEPTIONS
|
1998-09-03 01:25:15 +08:00
|
|
|
# define __STL_HAS_NAMESPACES
|
1997-08-22 06:57:35 +08:00
|
|
|
# endif
|
|
|
|
|
1999-04-13 07:37:24 +08:00
|
|
|
# if defined(__MINGW32__)
|
|
|
|
# define __STL_NO_DRAND48
|
|
|
|
# endif
|
|
|
|
|
1997-08-22 06:57:35 +08:00
|
|
|
# if defined(_MSC_VER)
|
|
|
|
# define __STL_NO_DRAND48
|
|
|
|
# define __STL_NEED_TYPENAME
|
1998-09-03 01:25:15 +08:00
|
|
|
# if _MSC_VER < 1100 /* 1000 is version 4.0, 1100 is 5.0, 1200 is 6.0. */
|
1997-08-22 06:57:35 +08:00
|
|
|
# define __STL_NEED_EXPLICIT
|
1998-09-03 01:25:15 +08:00
|
|
|
# define __STL_NO_BOOL
|
|
|
|
# if _MSC_VER > 1000
|
|
|
|
# include <yvals.h>
|
|
|
|
# define __STL_DONT_USE_BOOL_TYPEDEF
|
|
|
|
# endif
|
1997-08-22 06:57:35 +08:00
|
|
|
# endif
|
|
|
|
# define __STL_NON_TYPE_TMPL_PARAM_BUG
|
algo.h, [...]: Update To September 8 SGI release.
* algo.h, algobase.h, alloc.h, bvector.h, deque.h, hashtable.h,
iterator.h, list.h, rope.h, ropeimpl.h, slist.h, stl_config.h,
tree.h, vector.h: Update To September 8 SGI release.
From-SVN: r15211
1997-09-10 10:49:45 +08:00
|
|
|
# define __SGI_STL_NO_ARROW_OPERATOR
|
1997-08-22 06:57:35 +08:00
|
|
|
# ifdef _CPPUNWIND
|
|
|
|
# define __STL_USE_EXCEPTIONS
|
|
|
|
# endif
|
|
|
|
# ifdef _MT
|
|
|
|
# define __STL_WIN32THREADS
|
|
|
|
# endif
|
1998-09-03 01:25:15 +08:00
|
|
|
# if _MSC_VER >= 1200
|
|
|
|
# define __STL_PARTIAL_SPECIALIZATION_SYNTAX
|
|
|
|
# define __STL_HAS_NAMESPACES
|
|
|
|
# define __STL_NO_NAMESPACES
|
|
|
|
# endif
|
1997-08-22 06:57:35 +08:00
|
|
|
# endif
|
|
|
|
|
|
|
|
# if defined(__BORLANDC__)
|
|
|
|
# define __STL_NO_DRAND48
|
|
|
|
# define __STL_NEED_TYPENAME
|
|
|
|
# define __STL_LIMITED_DEFAULT_TEMPLATES
|
algo.h, [...]: Update To September 8 SGI release.
* algo.h, algobase.h, alloc.h, bvector.h, deque.h, hashtable.h,
iterator.h, list.h, rope.h, ropeimpl.h, slist.h, stl_config.h,
tree.h, vector.h: Update To September 8 SGI release.
From-SVN: r15211
1997-09-10 10:49:45 +08:00
|
|
|
# define __SGI_STL_NO_ARROW_OPERATOR
|
1997-08-22 06:57:35 +08:00
|
|
|
# define __STL_NON_TYPE_TMPL_PARAM_BUG
|
|
|
|
# ifdef _CPPUNWIND
|
|
|
|
# define __STL_USE_EXCEPTIONS
|
|
|
|
# endif
|
|
|
|
# ifdef __MT__
|
|
|
|
# define __STL_WIN32THREADS
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
|
1998-09-03 01:25:15 +08:00
|
|
|
# if defined(__STL_NO_BOOL) && !defined(__STL_DONT_USE_BOOL_TYPEDEF)
|
1997-08-22 06:57:35 +08:00
|
|
|
typedef int bool;
|
|
|
|
# define true 1
|
|
|
|
# define false 0
|
|
|
|
# endif
|
|
|
|
|
|
|
|
# ifdef __STL_NEED_TYPENAME
|
|
|
|
# define typename
|
|
|
|
# endif
|
|
|
|
|
1998-09-03 01:25:15 +08:00
|
|
|
# ifdef __STL_MEMBER_TEMPLATE_KEYWORD
|
|
|
|
# define __STL_TEMPLATE template
|
|
|
|
# else
|
|
|
|
# define __STL_TEMPLATE
|
|
|
|
# endif
|
|
|
|
|
1997-08-22 06:57:35 +08:00
|
|
|
# ifdef __STL_NEED_EXPLICIT
|
|
|
|
# define explicit
|
Makefile.in (install): Some of HEADERS come from the stl dir now.
* Makefile.in (install): Some of HEADERS come from the stl dir now.
* algorithm, deque, functional, iterator, list, map, memory, numeric,
queue, set, stack, utility, vector: Now in stl dir.
stl/:
* algo.h, algobase.h, alloc.h, bvector.h, defalloc.h, deque.h,
function.h, hash_map.h, hash_set.h, hashtable.h, heap.h, iterator.h,
list.h, map.h, multimap.h, multiset.h, pair.h, pthread_alloc.h,
rope.h, ropeimpl.h, set.h, slist.h, stack.h, stl_config.h, tempbuf.h,
tree.h, type_traits.h, vector.h: Update to October 27 SGI snapshot.
* algorithm, deque, functional, hash_map, hash_set, iterator, list,
map, memory, numeric, pthread_alloc, queue, rope, set, slist, stack,
stl_algo.h, stl_algobase.h, stl_alloc.h, stl_bvector.h,
stl_construct.h, stl_deque.h, stl_function.h, stl_hash_fun.h,
stl_hash_map.h, stl_hash_set.h, stl_hashtable.h, stl_heap.h,
stl_iterator.h, stl_list.h, stl_map.h, stl_multimap.h, stl_multiset.h,
stl_numeric.h, stl_pair.h, stl_queue.h, stl_raw_storage_iter.h,
stl_relops.h, stl_rope.h, stl_set.h, stl_slist.h, stl_stack.h,
stl_tempbuf.h, stl_tree.h, stl_uninitialized.h, stl_vector.h,
utility, vector: New files in October 27 SGI snapshot.
From-SVN: r16277
1997-11-03 04:28:22 +08:00
|
|
|
# endif
|
|
|
|
|
|
|
|
# ifdef __STL_EXPLICIT_FUNCTION_TMPL_ARGS
|
|
|
|
# define __STL_NULL_TMPL_ARGS <>
|
|
|
|
# else
|
|
|
|
# define __STL_NULL_TMPL_ARGS
|
|
|
|
# endif
|
|
|
|
|
1998-09-03 01:25:15 +08:00
|
|
|
# if defined(__STL_CLASS_PARTIAL_SPECIALIZATION) \
|
|
|
|
|| defined (__STL_PARTIAL_SPECIALIZATION_SYNTAX)
|
Makefile.in (install): Some of HEADERS come from the stl dir now.
* Makefile.in (install): Some of HEADERS come from the stl dir now.
* algorithm, deque, functional, iterator, list, map, memory, numeric,
queue, set, stack, utility, vector: Now in stl dir.
stl/:
* algo.h, algobase.h, alloc.h, bvector.h, defalloc.h, deque.h,
function.h, hash_map.h, hash_set.h, hashtable.h, heap.h, iterator.h,
list.h, map.h, multimap.h, multiset.h, pair.h, pthread_alloc.h,
rope.h, ropeimpl.h, set.h, slist.h, stack.h, stl_config.h, tempbuf.h,
tree.h, type_traits.h, vector.h: Update to October 27 SGI snapshot.
* algorithm, deque, functional, hash_map, hash_set, iterator, list,
map, memory, numeric, pthread_alloc, queue, rope, set, slist, stack,
stl_algo.h, stl_algobase.h, stl_alloc.h, stl_bvector.h,
stl_construct.h, stl_deque.h, stl_function.h, stl_hash_fun.h,
stl_hash_map.h, stl_hash_set.h, stl_hashtable.h, stl_heap.h,
stl_iterator.h, stl_list.h, stl_map.h, stl_multimap.h, stl_multiset.h,
stl_numeric.h, stl_pair.h, stl_queue.h, stl_raw_storage_iter.h,
stl_relops.h, stl_rope.h, stl_set.h, stl_slist.h, stl_stack.h,
stl_tempbuf.h, stl_tree.h, stl_uninitialized.h, stl_vector.h,
utility, vector: New files in October 27 SGI snapshot.
From-SVN: r16277
1997-11-03 04:28:22 +08:00
|
|
|
# define __STL_TEMPLATE_NULL template<>
|
|
|
|
# else
|
|
|
|
# define __STL_TEMPLATE_NULL
|
|
|
|
# endif
|
|
|
|
|
1998-09-03 01:25:15 +08:00
|
|
|
// Use standard-conforming allocators if we have the necessary language
|
1999-02-04 23:51:19 +08:00
|
|
|
// features. __STL_USE_SGI_ALLOCATORS is a hook so that users can
|
1998-09-03 01:25:15 +08:00
|
|
|
// disable new-style allocators, and continue to use the same kind of
|
|
|
|
// allocators as before, without having to edit library headers.
|
|
|
|
# if defined(__STL_CLASS_PARTIAL_SPECIALIZATION) && \
|
|
|
|
defined(__STL_MEMBER_TEMPLATES) && \
|
|
|
|
defined(__STL_MEMBER_TEMPLATE_CLASSES) && \
|
|
|
|
!defined(__STL_NO_BOOL) && \
|
|
|
|
!defined(__STL_NON_TYPE_TMPL_PARAM_BUG) && \
|
|
|
|
!defined(__STL_LIMITED_DEFAULT_TEMPLATES) && \
|
1999-02-04 23:51:19 +08:00
|
|
|
!defined(__STL_USE_SGI_ALLOCATORS)
|
1998-09-03 01:25:15 +08:00
|
|
|
# define __STL_USE_STD_ALLOCATORS
|
|
|
|
# endif
|
|
|
|
|
|
|
|
# ifndef __STL_DEFAULT_ALLOCATOR
|
|
|
|
# ifdef __STL_USE_STD_ALLOCATORS
|
|
|
|
# define __STL_DEFAULT_ALLOCATOR(T) allocator<T>
|
|
|
|
# else
|
|
|
|
# define __STL_DEFAULT_ALLOCATOR(T) alloc
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
|
Makefile.in (install): Some of HEADERS come from the stl dir now.
* Makefile.in (install): Some of HEADERS come from the stl dir now.
* algorithm, deque, functional, iterator, list, map, memory, numeric,
queue, set, stack, utility, vector: Now in stl dir.
stl/:
* algo.h, algobase.h, alloc.h, bvector.h, defalloc.h, deque.h,
function.h, hash_map.h, hash_set.h, hashtable.h, heap.h, iterator.h,
list.h, map.h, multimap.h, multiset.h, pair.h, pthread_alloc.h,
rope.h, ropeimpl.h, set.h, slist.h, stack.h, stl_config.h, tempbuf.h,
tree.h, type_traits.h, vector.h: Update to October 27 SGI snapshot.
* algorithm, deque, functional, hash_map, hash_set, iterator, list,
map, memory, numeric, pthread_alloc, queue, rope, set, slist, stack,
stl_algo.h, stl_algobase.h, stl_alloc.h, stl_bvector.h,
stl_construct.h, stl_deque.h, stl_function.h, stl_hash_fun.h,
stl_hash_map.h, stl_hash_set.h, stl_hashtable.h, stl_heap.h,
stl_iterator.h, stl_list.h, stl_map.h, stl_multimap.h, stl_multiset.h,
stl_numeric.h, stl_pair.h, stl_queue.h, stl_raw_storage_iter.h,
stl_relops.h, stl_rope.h, stl_set.h, stl_slist.h, stl_stack.h,
stl_tempbuf.h, stl_tree.h, stl_uninitialized.h, stl_vector.h,
utility, vector: New files in October 27 SGI snapshot.
From-SVN: r16277
1997-11-03 04:28:22 +08:00
|
|
|
// __STL_NO_NAMESPACES is a hook so that users can disable namespaces
|
|
|
|
// without having to edit library headers.
|
1998-09-03 01:25:15 +08:00
|
|
|
# if defined(__STL_HAS_NAMESPACES) && !defined(__STL_NO_NAMESPACES)
|
Makefile.in (install): Some of HEADERS come from the stl dir now.
* Makefile.in (install): Some of HEADERS come from the stl dir now.
* algorithm, deque, functional, iterator, list, map, memory, numeric,
queue, set, stack, utility, vector: Now in stl dir.
stl/:
* algo.h, algobase.h, alloc.h, bvector.h, defalloc.h, deque.h,
function.h, hash_map.h, hash_set.h, hashtable.h, heap.h, iterator.h,
list.h, map.h, multimap.h, multiset.h, pair.h, pthread_alloc.h,
rope.h, ropeimpl.h, set.h, slist.h, stack.h, stl_config.h, tempbuf.h,
tree.h, type_traits.h, vector.h: Update to October 27 SGI snapshot.
* algorithm, deque, functional, hash_map, hash_set, iterator, list,
map, memory, numeric, pthread_alloc, queue, rope, set, slist, stack,
stl_algo.h, stl_algobase.h, stl_alloc.h, stl_bvector.h,
stl_construct.h, stl_deque.h, stl_function.h, stl_hash_fun.h,
stl_hash_map.h, stl_hash_set.h, stl_hashtable.h, stl_heap.h,
stl_iterator.h, stl_list.h, stl_map.h, stl_multimap.h, stl_multiset.h,
stl_numeric.h, stl_pair.h, stl_queue.h, stl_raw_storage_iter.h,
stl_relops.h, stl_rope.h, stl_set.h, stl_slist.h, stl_stack.h,
stl_tempbuf.h, stl_tree.h, stl_uninitialized.h, stl_vector.h,
utility, vector: New files in October 27 SGI snapshot.
From-SVN: r16277
1997-11-03 04:28:22 +08:00
|
|
|
# define __STD std
|
|
|
|
# define __STL_BEGIN_NAMESPACE namespace std {
|
|
|
|
# define __STL_END_NAMESPACE }
|
1998-09-03 01:25:15 +08:00
|
|
|
# define __STL_USE_NAMESPACE_FOR_RELOPS
|
Makefile.in (install): Some of HEADERS come from the stl dir now.
* Makefile.in (install): Some of HEADERS come from the stl dir now.
* algorithm, deque, functional, iterator, list, map, memory, numeric,
queue, set, stack, utility, vector: Now in stl dir.
stl/:
* algo.h, algobase.h, alloc.h, bvector.h, defalloc.h, deque.h,
function.h, hash_map.h, hash_set.h, hashtable.h, heap.h, iterator.h,
list.h, map.h, multimap.h, multiset.h, pair.h, pthread_alloc.h,
rope.h, ropeimpl.h, set.h, slist.h, stack.h, stl_config.h, tempbuf.h,
tree.h, type_traits.h, vector.h: Update to October 27 SGI snapshot.
* algorithm, deque, functional, hash_map, hash_set, iterator, list,
map, memory, numeric, pthread_alloc, queue, rope, set, slist, stack,
stl_algo.h, stl_algobase.h, stl_alloc.h, stl_bvector.h,
stl_construct.h, stl_deque.h, stl_function.h, stl_hash_fun.h,
stl_hash_map.h, stl_hash_set.h, stl_hashtable.h, stl_heap.h,
stl_iterator.h, stl_list.h, stl_map.h, stl_multimap.h, stl_multiset.h,
stl_numeric.h, stl_pair.h, stl_queue.h, stl_raw_storage_iter.h,
stl_relops.h, stl_rope.h, stl_set.h, stl_slist.h, stl_stack.h,
stl_tempbuf.h, stl_tree.h, stl_uninitialized.h, stl_vector.h,
utility, vector: New files in October 27 SGI snapshot.
From-SVN: r16277
1997-11-03 04:28:22 +08:00
|
|
|
# define __STL_BEGIN_RELOPS_NAMESPACE namespace std {
|
|
|
|
# define __STL_END_RELOPS_NAMESPACE }
|
|
|
|
# define __STD_RELOPS std
|
1998-09-03 01:25:15 +08:00
|
|
|
# define __STL_USE_NAMESPACES
|
Makefile.in (install): Some of HEADERS come from the stl dir now.
* Makefile.in (install): Some of HEADERS come from the stl dir now.
* algorithm, deque, functional, iterator, list, map, memory, numeric,
queue, set, stack, utility, vector: Now in stl dir.
stl/:
* algo.h, algobase.h, alloc.h, bvector.h, defalloc.h, deque.h,
function.h, hash_map.h, hash_set.h, hashtable.h, heap.h, iterator.h,
list.h, map.h, multimap.h, multiset.h, pair.h, pthread_alloc.h,
rope.h, ropeimpl.h, set.h, slist.h, stack.h, stl_config.h, tempbuf.h,
tree.h, type_traits.h, vector.h: Update to October 27 SGI snapshot.
* algorithm, deque, functional, hash_map, hash_set, iterator, list,
map, memory, numeric, pthread_alloc, queue, rope, set, slist, stack,
stl_algo.h, stl_algobase.h, stl_alloc.h, stl_bvector.h,
stl_construct.h, stl_deque.h, stl_function.h, stl_hash_fun.h,
stl_hash_map.h, stl_hash_set.h, stl_hashtable.h, stl_heap.h,
stl_iterator.h, stl_list.h, stl_map.h, stl_multimap.h, stl_multiset.h,
stl_numeric.h, stl_pair.h, stl_queue.h, stl_raw_storage_iter.h,
stl_relops.h, stl_rope.h, stl_set.h, stl_slist.h, stl_stack.h,
stl_tempbuf.h, stl_tree.h, stl_uninitialized.h, stl_vector.h,
utility, vector: New files in October 27 SGI snapshot.
From-SVN: r16277
1997-11-03 04:28:22 +08:00
|
|
|
# else
|
1999-02-04 23:51:19 +08:00
|
|
|
# define __STD
|
|
|
|
# define __STL_BEGIN_NAMESPACE
|
|
|
|
# define __STL_END_NAMESPACE
|
Makefile.in (install): Some of HEADERS come from the stl dir now.
* Makefile.in (install): Some of HEADERS come from the stl dir now.
* algorithm, deque, functional, iterator, list, map, memory, numeric,
queue, set, stack, utility, vector: Now in stl dir.
stl/:
* algo.h, algobase.h, alloc.h, bvector.h, defalloc.h, deque.h,
function.h, hash_map.h, hash_set.h, hashtable.h, heap.h, iterator.h,
list.h, map.h, multimap.h, multiset.h, pair.h, pthread_alloc.h,
rope.h, ropeimpl.h, set.h, slist.h, stack.h, stl_config.h, tempbuf.h,
tree.h, type_traits.h, vector.h: Update to October 27 SGI snapshot.
* algorithm, deque, functional, hash_map, hash_set, iterator, list,
map, memory, numeric, pthread_alloc, queue, rope, set, slist, stack,
stl_algo.h, stl_algobase.h, stl_alloc.h, stl_bvector.h,
stl_construct.h, stl_deque.h, stl_function.h, stl_hash_fun.h,
stl_hash_map.h, stl_hash_set.h, stl_hashtable.h, stl_heap.h,
stl_iterator.h, stl_list.h, stl_map.h, stl_multimap.h, stl_multiset.h,
stl_numeric.h, stl_pair.h, stl_queue.h, stl_raw_storage_iter.h,
stl_relops.h, stl_rope.h, stl_set.h, stl_slist.h, stl_stack.h,
stl_tempbuf.h, stl_tree.h, stl_uninitialized.h, stl_vector.h,
utility, vector: New files in October 27 SGI snapshot.
From-SVN: r16277
1997-11-03 04:28:22 +08:00
|
|
|
# undef __STL_USE_NAMESPACE_FOR_RELOPS
|
1999-02-04 23:51:19 +08:00
|
|
|
# define __STL_BEGIN_RELOPS_NAMESPACE
|
|
|
|
# define __STL_END_RELOPS_NAMESPACE
|
|
|
|
# define __STD_RELOPS
|
1998-09-03 01:25:15 +08:00
|
|
|
# undef __STL_USE_NAMESPACES
|
Makefile.in (install): Some of HEADERS come from the stl dir now.
* Makefile.in (install): Some of HEADERS come from the stl dir now.
* algorithm, deque, functional, iterator, list, map, memory, numeric,
queue, set, stack, utility, vector: Now in stl dir.
stl/:
* algo.h, algobase.h, alloc.h, bvector.h, defalloc.h, deque.h,
function.h, hash_map.h, hash_set.h, hashtable.h, heap.h, iterator.h,
list.h, map.h, multimap.h, multiset.h, pair.h, pthread_alloc.h,
rope.h, ropeimpl.h, set.h, slist.h, stack.h, stl_config.h, tempbuf.h,
tree.h, type_traits.h, vector.h: Update to October 27 SGI snapshot.
* algorithm, deque, functional, hash_map, hash_set, iterator, list,
map, memory, numeric, pthread_alloc, queue, rope, set, slist, stack,
stl_algo.h, stl_algobase.h, stl_alloc.h, stl_bvector.h,
stl_construct.h, stl_deque.h, stl_function.h, stl_hash_fun.h,
stl_hash_map.h, stl_hash_set.h, stl_hashtable.h, stl_heap.h,
stl_iterator.h, stl_list.h, stl_map.h, stl_multimap.h, stl_multiset.h,
stl_numeric.h, stl_pair.h, stl_queue.h, stl_raw_storage_iter.h,
stl_relops.h, stl_rope.h, stl_set.h, stl_slist.h, stl_stack.h,
stl_tempbuf.h, stl_tree.h, stl_uninitialized.h, stl_vector.h,
utility, vector: New files in October 27 SGI snapshot.
From-SVN: r16277
1997-11-03 04:28:22 +08:00
|
|
|
# endif
|
|
|
|
|
|
|
|
# ifdef __STL_USE_EXCEPTIONS
|
|
|
|
# define __STL_TRY try
|
|
|
|
# define __STL_CATCH_ALL catch(...)
|
1998-09-03 01:25:15 +08:00
|
|
|
# define __STL_THROW(x) throw x
|
Makefile.in (install): Some of HEADERS come from the stl dir now.
* Makefile.in (install): Some of HEADERS come from the stl dir now.
* algorithm, deque, functional, iterator, list, map, memory, numeric,
queue, set, stack, utility, vector: Now in stl dir.
stl/:
* algo.h, algobase.h, alloc.h, bvector.h, defalloc.h, deque.h,
function.h, hash_map.h, hash_set.h, hashtable.h, heap.h, iterator.h,
list.h, map.h, multimap.h, multiset.h, pair.h, pthread_alloc.h,
rope.h, ropeimpl.h, set.h, slist.h, stack.h, stl_config.h, tempbuf.h,
tree.h, type_traits.h, vector.h: Update to October 27 SGI snapshot.
* algorithm, deque, functional, hash_map, hash_set, iterator, list,
map, memory, numeric, pthread_alloc, queue, rope, set, slist, stack,
stl_algo.h, stl_algobase.h, stl_alloc.h, stl_bvector.h,
stl_construct.h, stl_deque.h, stl_function.h, stl_hash_fun.h,
stl_hash_map.h, stl_hash_set.h, stl_hashtable.h, stl_heap.h,
stl_iterator.h, stl_list.h, stl_map.h, stl_multimap.h, stl_multiset.h,
stl_numeric.h, stl_pair.h, stl_queue.h, stl_raw_storage_iter.h,
stl_relops.h, stl_rope.h, stl_set.h, stl_slist.h, stl_stack.h,
stl_tempbuf.h, stl_tree.h, stl_uninitialized.h, stl_vector.h,
utility, vector: New files in October 27 SGI snapshot.
From-SVN: r16277
1997-11-03 04:28:22 +08:00
|
|
|
# define __STL_RETHROW throw
|
|
|
|
# define __STL_NOTHROW throw()
|
|
|
|
# define __STL_UNWIND(action) catch(...) { action; throw; }
|
|
|
|
# else
|
1999-02-04 23:51:19 +08:00
|
|
|
# define __STL_TRY
|
Makefile.in (install): Some of HEADERS come from the stl dir now.
* Makefile.in (install): Some of HEADERS come from the stl dir now.
* algorithm, deque, functional, iterator, list, map, memory, numeric,
queue, set, stack, utility, vector: Now in stl dir.
stl/:
* algo.h, algobase.h, alloc.h, bvector.h, defalloc.h, deque.h,
function.h, hash_map.h, hash_set.h, hashtable.h, heap.h, iterator.h,
list.h, map.h, multimap.h, multiset.h, pair.h, pthread_alloc.h,
rope.h, ropeimpl.h, set.h, slist.h, stack.h, stl_config.h, tempbuf.h,
tree.h, type_traits.h, vector.h: Update to October 27 SGI snapshot.
* algorithm, deque, functional, hash_map, hash_set, iterator, list,
map, memory, numeric, pthread_alloc, queue, rope, set, slist, stack,
stl_algo.h, stl_algobase.h, stl_alloc.h, stl_bvector.h,
stl_construct.h, stl_deque.h, stl_function.h, stl_hash_fun.h,
stl_hash_map.h, stl_hash_set.h, stl_hashtable.h, stl_heap.h,
stl_iterator.h, stl_list.h, stl_map.h, stl_multimap.h, stl_multiset.h,
stl_numeric.h, stl_pair.h, stl_queue.h, stl_raw_storage_iter.h,
stl_relops.h, stl_rope.h, stl_set.h, stl_slist.h, stl_stack.h,
stl_tempbuf.h, stl_tree.h, stl_uninitialized.h, stl_vector.h,
utility, vector: New files in October 27 SGI snapshot.
From-SVN: r16277
1997-11-03 04:28:22 +08:00
|
|
|
# define __STL_CATCH_ALL if (false)
|
1999-02-04 23:51:19 +08:00
|
|
|
# define __STL_THROW(x)
|
|
|
|
# define __STL_RETHROW
|
|
|
|
# define __STL_NOTHROW
|
|
|
|
# define __STL_UNWIND(action)
|
1997-08-22 06:57:35 +08:00
|
|
|
# endif
|
|
|
|
|
|
|
|
#ifdef __STL_ASSERTIONS
|
|
|
|
# include <stdio.h>
|
|
|
|
# define __stl_assert(expr) \
|
|
|
|
if (!(expr)) { fprintf(stderr, "%s:%d STL assertion failure: %s\n", \
|
|
|
|
__FILE__, __LINE__, # expr); abort(); }
|
|
|
|
#else
|
|
|
|
# define __stl_assert(expr)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __STL_CONFIG_H */
|
Makefile.in (install): Some of HEADERS come from the stl dir now.
* Makefile.in (install): Some of HEADERS come from the stl dir now.
* algorithm, deque, functional, iterator, list, map, memory, numeric,
queue, set, stack, utility, vector: Now in stl dir.
stl/:
* algo.h, algobase.h, alloc.h, bvector.h, defalloc.h, deque.h,
function.h, hash_map.h, hash_set.h, hashtable.h, heap.h, iterator.h,
list.h, map.h, multimap.h, multiset.h, pair.h, pthread_alloc.h,
rope.h, ropeimpl.h, set.h, slist.h, stack.h, stl_config.h, tempbuf.h,
tree.h, type_traits.h, vector.h: Update to October 27 SGI snapshot.
* algorithm, deque, functional, hash_map, hash_set, iterator, list,
map, memory, numeric, pthread_alloc, queue, rope, set, slist, stack,
stl_algo.h, stl_algobase.h, stl_alloc.h, stl_bvector.h,
stl_construct.h, stl_deque.h, stl_function.h, stl_hash_fun.h,
stl_hash_map.h, stl_hash_set.h, stl_hashtable.h, stl_heap.h,
stl_iterator.h, stl_list.h, stl_map.h, stl_multimap.h, stl_multiset.h,
stl_numeric.h, stl_pair.h, stl_queue.h, stl_raw_storage_iter.h,
stl_relops.h, stl_rope.h, stl_set.h, stl_slist.h, stl_stack.h,
stl_tempbuf.h, stl_tree.h, stl_uninitialized.h, stl_vector.h,
utility, vector: New files in October 27 SGI snapshot.
From-SVN: r16277
1997-11-03 04:28:22 +08:00
|
|
|
|
|
|
|
// Local Variables:
|
|
|
|
// mode:C++
|
|
|
|
// End:
|