Page 2 of 4 FirstFirst 1234 LastLast
Results 26 to 50 of 99
  1. #26
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    * Copyright (c) 1996
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. Silicon Graphics makes no
    * representations about the suitability of this software for any
    * purpose. It is provided "as is" without express or implied warranty.
    *
    *
    * Copyright (c) 1994
    * Hewlett-Packard Company
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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.
    *
    */

    #ifndef __SGI_STL_HASH_MAP_H
    #define __SGI_STL_HASH_MAP_H

    #ifndef __SGI_STL_INTERNAL_HASHTABLE_H
    #include <stl_hashtable.h>
    #endif

    #include <algobase.h>
    #include <stl_hash_map.h>

    #ifdef __STL_USE_NAMESPACES
    using __STD::hash;
    using __STD::hashtable;
    using __STD::hash_map;
    using __STD::hash_multimap;
    #endif /* __STL_USE_NAMESPACES */


    #endif /* __SGI_STL_HASH_MAP_H */

    // Local Variables:
    // mode:C++
    // End:

  2. #27
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    * Copyright (c) 1996
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. Silicon Graphics makes no
    * representations about the suitability of this software for any
    * purpose. It is provided "as is" without express or implied warranty.
    *
    *
    * Copyright (c) 1994
    * Hewlett-Packard Company
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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.
    *
    */

    #ifndef __SGI_STL_HASH_SET
    #define __SGI_STL_HASH_SET

    #ifndef __SGI_STL_INTERNAL_HASHTABLE_H
    #include <stl_hashtable.h>
    #endif

    #include <stl_hash_set.h>

    #endif /* __SGI_STL_HASH_SET */

    // Local Variables:
    // mode:C++
    // End:

  3. #28
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    * Copyright (c) 1996
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. Silicon Graphics makes no
    * representations about the suitability of this software for any
    * purpose. It is provided "as is" without express or implied warranty.
    *
    *
    * Copyright (c) 1994
    * Hewlett-Packard Company
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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.
    *
    */

    #ifndef __SGI_STL_HASH_SET_H
    #define __SGI_STL_HASH_SET_H

    #ifndef __SGI_STL_INTERNAL_HASHTABLE_H
    #include <stl_hashtable.h>
    #endif

    #include <algobase.h>
    #include <stl_hash_set.h>

    #ifdef __STL_USE_NAMESPACES
    using __STD::hash;
    using __STD::hashtable;
    using __STD::hash_set;
    using __STD::hash_multiset;
    #endif /* __STL_USE_NAMESPACES */

    #endif /* __SGI_STL_HASH_SET_H */

  4. #29
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    * Copyright (c) 1996,1997
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. Silicon Graphics makes no
    * representations about the suitability of this software for any
    * purpose. It is provided "as is" without express or implied warranty.
    *
    *
    * Copyright (c) 1994
    * Hewlett-Packard Company
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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.
    *
    */

    /* NOTE: This is an internal header file, included by other STL headers.
    * You should not attempt to use it directly.
    */

    #ifndef __SGI_STL_HASHTABLE_H
    #define __SGI_STL_HASHTABLE_H

    #include <stl_hashtable.h>
    #include <algo.h>
    #include <alloc.h>
    #include <vector.h>

    #ifdef __STL_USE_NAMESPACES
    using __STD::hash;
    using __STD::hashtable;
    #endif /* __STL_USE_NAMESPACES */

    #endif /* __SGI_STL_HASHTABLE_H */

    // Local Variables:
    // mode:C++
    // End:

  5. #30
    Believe. jeebus's Avatar
    My Team
    San Antonio Spurs
    Post Count
    20,005
    Why not just post a long cat?

  6. #31
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    *
    * Copyright (c) 1994
    * Hewlett-Packard Company
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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 Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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 __SGI_STL_HEAP_H
    #define __SGI_STL_HEAP_H

    #include <stl_config.h>
    #include <stl_heap.h>

    #ifdef __STL_USE_NAMESPACES

    using __STD::push_heap;
    using __STD::pop_heap;
    using __STD::make_heap;
    using __STD::sort_heap;

    #endif /* __STL_USE_NAMESPACES */


    #endif /* __SGI_STL_HEAP_H */

    // Local Variables:
    // mode:C++
    // End:

  7. #32
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    *
    * Copyright (c) 1994
    * Hewlett-Packard Company
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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) 1996,1997
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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 __SGI_STL_ITERATOR
    #define __SGI_STL_ITERATOR

    #include <stl_config.h>
    #include <stl_relops.h>
    #include <stddef.h>

    #ifdef __STL_USE_NEW_IOSTREAMS
    #include <iosfwd>
    #else /* __STL_USE_NEW_IOSTREAMS */
    #include <iostream.h>
    #endif /* __STL_USE_NEW_IOSTREAMS */

    #include <stl_iterator_base.h>
    #include <stl_iterator.h>

    #endif /* __SGI_STL_ITERATOR */

    // Local Variables:
    // mode:C++
    // End:

  8. #33
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    *
    * Copyright (c) 1994
    * Hewlett-Packard Company
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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) 1996
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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 __SGI_STL_ITERATOR_H
    #define __SGI_STL_ITERATOR_H

    #ifndef __SGI_STL_FUNCTION_H
    #include <function.h>
    #endif
    #include <stddef.h>

    #ifdef __STL_USE_NEW_IOSTREAMS
    #include <iosfwd>
    #else /* __STL_USE_NEW_IOSTREAMS */
    #include <iostream.h>
    #endif /* __STL_USE_NEW_IOSTREAMS */

    #ifndef __SGI_STL_INTERNAL_ITERATOR_BASE_H
    #include <stl_iterator_base.h>
    #endif
    #ifndef __SGI_STL_INTERNAL_ITERATOR_H
    #include <stl_iterator.h>
    #endif
    #ifndef __TYPE_TRAITS_H
    #include <type_traits.h>
    #endif
    #ifndef __SGI_STL_INTERNAL_CONSTRUCT_H
    #include <stl_construct.h>
    #endif
    #ifndef __SGI_STL_INTERNAL_RAW_STORAGE_ITERATOR_H
    #include <stl_raw_storage_iter.h>
    #endif

    #ifdef __STL_USE_NAMESPACES

    // Names from stl_iterator.h

    using __STD::input_iterator_tag;
    using __STD::output_iterator_tag;
    using __STD::forward_iterator_tag;
    using __STD::bidirectional_iterator_tag;
    using __STD::random_access_iterator_tag;

    #if 0
    using __STD::iterator;
    #endif
    using __STD::input_iterator;
    using __STD::output_iterator;
    using __STD::forward_iterator;
    using __STD::bidirectional_iterator;
    using __STD::random_access_iterator;

    #ifdef __STL_CLASS_PARTIAL_SPECIALIZATION
    using __STD::iterator_traits;
    #endif

    using __STD::iterator_category;
    using __STD::distance_type;
    using __STD::value_type;

    using __STD::distance;
    using __STD::advance;

    using __STD::insert_iterator;
    using __STD:nt_insert_iterator;
    using __STD::back_insert_iterator;
    using __STD::inserter;
    using __STD:nt_inserter;
    using __STD::back_inserter;

    using __STD::reverse_iterator;
    using __STD::reverse_bidirectional_iterator;

    using __STD::istream_iterator;
    using __STD::ostream_iterator;

    // Names from stl_construct.h
    using __STD::construct;
    using __STD::destroy;

    // Names from stl_raw_storage_iter.h
    using __STD::raw_storage_iterator;

    #endif /* __STL_USE_NAMESPACES */

    #endif /* __SGI_STL_ITERATOR_H */

    // Local Variables:
    // mode:C++
    // End:

  9. #34
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    * Copyright (c) 1997
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. Silicon Graphics makes no
    * representations about the suitability of this software for any
    * purpose. It is provided "as is" without express or implied warranty.
    */

    /* NOTE: This is not portable code. Parts of numeric_limits<> are
    * inherently machine-dependent. At present this file is suitable
    * for the MIPS and ia32 architectures.
    */

    #ifndef __SGI_CPP_LIMITS
    #define __SGI_CPP_LIMITS

    #include <limits.h>
    #include <float.h>
    #include <stl_config.h>

    __STL_BEGIN_NAMESPACE

    enum float_round_style {
    round_indeterminate = -1,
    round_toward_zero = 0,
    round_to_nearest = 1,
    round_toward_infinity = 2,
    round_toward_neg_infinity = 3
    };

    enum float_denorm_style {
    denorm_indeterminate = -1,
    denorm_absent = 0,
    denorm_present = 1
    };

    // The C++ standard (section 18.2.1) requires that some of the members of
    // numeric_limits be static const data members that are given constant-
    // initializers within the class declaration. On compilers where the
    // __STL_STATIC_CONST_INIT_BUG macro is defined, it is impossible to write
    // a standard-conforming numeric_limits class.
    //
    // There are two possible workarounds: either initialize the data
    // members outside the class, or change them from data members to
    // enums. Neither workaround is satisfactory: the former makes it
    // impossible to use the data members in constant-expressions, and the
    // latter means they have the wrong type and that it is impossible to
    // take their addresses. We choose the former workaround.

    #ifdef __STL_STATIC_CONST_INIT_BUG
    # define __STL_DECLARE_LIMITS_MEMBER(__mem_type, __mem_name, __mem_value) \
    enum { __mem_name = __mem_value }
    #else /* __STL_STATIC_CONST_INIT_BUG */
    # define __STL_DECLARE_LIMITS_MEMBER(__mem_type, __mem_name, __mem_value) \
    static const __mem_type __mem_name = __mem_value
    #endif /* __STL_STATIC_CONST_INIT_BUG */

    // Base class for all specializations of numeric_limits.

    template <class __number>
    class _Numeric_limits_base {
    public:
    __STL_DECLARE_LIMITS_MEMBER(bool, is_specialized, false);

    static __number min() __STL_NOTHROW { return __number(); }
    static __number max() __STL_NOTHROW { return __number(); }

    __STL_DECLARE_LIMITS_MEMBER(int, digits, 0);
    __STL_DECLARE_LIMITS_MEMBER(int, digits10, 0);

    __STL_DECLARE_LIMITS_MEMBER(bool, is_signed, false);
    __STL_DECLARE_LIMITS_MEMBER(bool, is_integer, false);
    __STL_DECLARE_LIMITS_MEMBER(bool, is_exact, false);

    __STL_DECLARE_LIMITS_MEMBER(int, radix, 0);

    static __number epsilon() __STL_NOTHROW { return __number(); }
    static __number round_error() __STL_NOTHROW { return __number(); }

    __STL_DECLARE_LIMITS_MEMBER(int, min_exponent, 0);
    __STL_DECLARE_LIMITS_MEMBER(int, min_exponent10, 0);
    __STL_DECLARE_LIMITS_MEMBER(int, max_exponent, 0);
    __STL_DECLARE_LIMITS_MEMBER(int, max_exponent10, 0);

    __STL_DECLARE_LIMITS_MEMBER(bool, has_infinity, false);
    __STL_DECLARE_LIMITS_MEMBER(bool, has_quiet_NaN, false);
    __STL_DECLARE_LIMITS_MEMBER(bool, has_signaling_NaN, false);
    __STL_DECLARE_LIMITS_MEMBER(float_denorm_style,
    has_denorm,
    denorm_absent);
    __STL_DECLARE_LIMITS_MEMBER(bool, has_denorm_loss, false);

    static __number infinity() __STL_NOTHROW { return __number(); }
    static __number quiet_NaN() __STL_NOTHROW { return __number(); }
    static __number signaling_NaN() __STL_NOTHROW { return __number(); }
    static __number denorm_min() __STL_NOTHROW { return __number(); }

    __STL_DECLARE_LIMITS_MEMBER(bool, is_iec559, false);
    __STL_DECLARE_LIMITS_MEMBER(bool, is_bounded, false);
    __STL_DECLARE_LIMITS_MEMBER(bool, is_modulo, false);

    __STL_DECLARE_LIMITS_MEMBER(bool, traps, false);
    __STL_DECLARE_LIMITS_MEMBER(bool, tinyness_before, false);
    __STL_DECLARE_LIMITS_MEMBER(float_round_style,
    round_style,
    round_toward_zero);
    };

    #ifdef __STL_STATIC_CONST_INIT_BUG
    # define __STL_DEFINE_NUMERIC_BASE_MEMBER(__type, __mem)
    #else /* __STL_STATIC_CONST_INIT_BUG */
    # define __STL_DEFINE_NUMERIC_BASE_MEMBER(__type, __mem) \
    template <class __number> \
    const __type _Numeric_limits_base<__number>:: __mem
    #endif /* __STL_STATIC_CONST_INIT_BUG */

    __STL_DEFINE_NUMERIC_BASE_MEMBER(bool, is_specialized);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(int, digits);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(int, digits10);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(bool, is_signed);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(bool, is_integer);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(bool, is_exact);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(int, radix);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(int, min_exponent);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(int, max_exponent);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(int, min_exponent10);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(int, max_exponent10);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(bool, has_infinity);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(bool, has_quiet_NaN);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(bool, has_signaling_NaN);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(float_denorm_styl e, has_denorm);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(bool, has_denorm_loss);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(bool, is_iec559);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(bool, is_bounded);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(bool, is_modulo);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(bool, traps);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(bool, tinyness_before);
    __STL_DEFINE_NUMERIC_BASE_MEMBER(float_round_style , round_style);


    // Base class for integers.

    template <class _Int,
    _Int __imin, _Int __imax,
    int __idigits = -1, bool __ismod = true>
    class _Integer_limits : public _Numeric_limits_base<_Int>
    {
    public:
    __STL_DECLARE_LIMITS_MEMBER(bool, is_specialized, true);

    static _Int min() __STL_NOTHROW { return __imin; }
    static _Int max() __STL_NOTHROW { return __imax; }

    __STL_DECLARE_LIMITS_MEMBER(int,
    digits,
    (__idigits < 0) ? (int)(sizeof(_Int) * CHAR_BIT)
    - (__imin == 0 ? 0 : 1)
    : __idigits);
    __STL_DECLARE_LIMITS_MEMBER(int, digits10, (digits * 301) / 1000);
    // log 2 = 0.301029995664...

    __STL_DECLARE_LIMITS_MEMBER(bool, is_signed, __imin != 0);
    __STL_DECLARE_LIMITS_MEMBER(bool, is_integer, true);
    __STL_DECLARE_LIMITS_MEMBER(bool, is_exact, true);
    __STL_DECLARE_LIMITS_MEMBER(int, radix, 2);

    __STL_DECLARE_LIMITS_MEMBER(bool, is_bounded, true);
    __STL_DECLARE_LIMITS_MEMBER(bool, is_modulo, __ismod);
    };

    #ifdef __STL_STATIC_CONST_INIT_BUG
    # define __STL_DEFINE_INTEGER_LIMITS_MEMBER(__type, __mem)
    #else /* __STL_STATIC_CONST_INIT_BUG */
    # define __STL_DEFINE_INTEGER_LIMITS_MEMBER(__type, __mem) \
    template <class _Int, _Int __imin, _Int __imax, int __idig, bool __ismod> \
    const __type _Integer_limits<_Int, __imin, __imax, __idig, __ismod>::__mem
    #endif /* __STL_STATIC_CONST_INIT_BUG */

    __STL_DEFINE_INTEGER_LIMITS_MEMBER(bool, is_specialized);
    __STL_DEFINE_INTEGER_LIMITS_MEMBER(int, digits);
    __STL_DEFINE_INTEGER_LIMITS_MEMBER(int, digits10);
    __STL_DEFINE_INTEGER_LIMITS_MEMBER(bool, is_signed);
    __STL_DEFINE_INTEGER_LIMITS_MEMBER(bool, is_integer);
    __STL_DEFINE_INTEGER_LIMITS_MEMBER(bool, is_exact);
    __STL_DEFINE_INTEGER_LIMITS_MEMBER(int, radix);
    __STL_DEFINE_INTEGER_LIMITS_MEMBER(bool, is_bounded);
    __STL_DEFINE_INTEGER_LIMITS_MEMBER(bool, is_modulo);


    // Base class for floating-point numbers.
    template <class __number,
    int __Digits, int __Digits10,
    int __MinExp, int __MaxExp,
    int __MinExp10, int __MaxExp10,
    bool __IsIEC559,
    float_round_style __RoundStyle>
    class _Floating_limits : public _Numeric_limits_base<__number>
    {
    public:
    __STL_DECLARE_LIMITS_MEMBER(bool, is_specialized, true);

    __STL_DECLARE_LIMITS_MEMBER(int, digits, __Digits);
    __STL_DECLARE_LIMITS_MEMBER(int, digits10, __Digits10);

    __STL_DECLARE_LIMITS_MEMBER(bool, is_signed, true);

    __STL_DECLARE_LIMITS_MEMBER(int, radix, 2);

    __STL_DECLARE_LIMITS_MEMBER(int, min_exponent, __MinExp);
    __STL_DECLARE_LIMITS_MEMBER(int, max_exponent, __MaxExp);
    __STL_DECLARE_LIMITS_MEMBER(int, min_exponent10, __MinExp10);
    __STL_DECLARE_LIMITS_MEMBER(int, max_exponent10, __MaxExp10);

    __STL_DECLARE_LIMITS_MEMBER(bool, has_infinity, true);
    __STL_DECLARE_LIMITS_MEMBER(bool, has_quiet_NaN, true);
    __STL_DECLARE_LIMITS_MEMBER(bool, has_signaling_NaN, true);
    __STL_DECLARE_LIMITS_MEMBER(float_denorm_style,
    has_denorm,
    denorm_indeterminate);
    __STL_DECLARE_LIMITS_MEMBER(bool, has_denorm_loss, false);

    __STL_DECLARE_LIMITS_MEMBER(bool, is_iec559, __IsIEC559);
    __STL_DECLARE_LIMITS_MEMBER(bool, is_bounded, true);
    __STL_DECLARE_LIMITS_MEMBER(bool, traps, true);
    __STL_DECLARE_LIMITS_MEMBER(bool, tinyness_before, false);

    __STL_DECLARE_LIMITS_MEMBER(float_round_style, round_style, __RoundStyle);
    };

    #ifdef __STL_STATIC_CONST_INIT_BUG
    # define __STL_DEFINE_FLOAT_LIMITS_MEMBER(__type, __mem)
    #else /* __STL_STATIC_CONST_INIT_BUG */
    # define __STL_DEFINE_FLOAT_LIMITS_MEMBER(__type, __mem) \
    template <class __Num, int __Dig, int __Dig10, \
    int __MnX, int __MxX, int __MnX10, int __MxX10, \
    bool __IsIEEE, float_round_style __Sty> \
    const __type _Floating_limits<__Num, __Dig, __Dig10, \
    __MnX, __MxX, __MnX10, __MxX10, \
    __IsIEEE, __Sty>:: __mem
    #endif /* __STL_STATIC_CONST_INIT_BUG */

    __STL_DEFINE_FLOAT_LIMITS_MEMBER(bool, is_specialized);
    __STL_DEFINE_FLOAT_LIMITS_MEMBER(int, digits);
    __STL_DEFINE_FLOAT_LIMITS_MEMBER(int, digits10);
    __STL_DEFINE_FLOAT_LIMITS_MEMBER(bool, is_signed);
    __STL_DEFINE_FLOAT_LIMITS_MEMBER(int, radix);
    __STL_DEFINE_FLOAT_LIMITS_MEMBER(int, min_exponent);
    __STL_DEFINE_FLOAT_LIMITS_MEMBER(int, max_exponent);
    __STL_DEFINE_FLOAT_LIMITS_MEMBER(int, min_exponent10);
    __STL_DEFINE_FLOAT_LIMITS_MEMBER(int, max_exponent10);
    __STL_DEFINE_FLOAT_LIMITS_MEMBER(bool, has_infinity);
    __STL_DEFINE_FLOAT_LIMITS_MEMBER(bool, has_quiet_NaN);
    __STL_DEFINE_FLOAT_LIMITS_MEMBER(bool, has_signaling_NaN);
    __STL_DEFINE_FLOAT_LIMITS_MEMBER(float_denorm_styl e, has_denorm);
    __STL_DEFINE_FLOAT_LIMITS_MEMBER(bool, has_denorm_loss);
    __STL_DEFINE_FLOAT_LIMITS_MEMBER(bool, is_iec559);
    __STL_DEFINE_FLOAT_LIMITS_MEMBER(bool, is_bounded);
    __STL_DEFINE_FLOAT_LIMITS_MEMBER(bool, traps);
    __STL_DEFINE_FLOAT_LIMITS_MEMBER(bool, tinyness_before);
    __STL_DEFINE_FLOAT_LIMITS_MEMBER(float_round_style , round_style);


    #undef __STL_DECLARE_NUMERIC_LIMITS_MEMBER
    #undef __STL_DEFINE_NUMERIC_BASE_MEMBER
    #undef __STL_DEFINE_INTEGER_LIMITS_MEMBER
    #undef __STL_DEFINE_FLOAT_LIMITS_MEMBER

    // Class numeric_limits

    // The unspecialized class.

    template<class _Tp>
    class numeric_limits : public _Numeric_limits_base<_Tp> {};

    // Specializations for all built-in integral types.

    #ifndef __STL_NO_BOOL

    __STL_TEMPLATE_NULL
    class numeric_limits<bool>
    : public _Integer_limits<bool, false, true, 1, false>
    {};

    #endif /* __STL_NO_BOOL */

    __STL_TEMPLATE_NULL
    class numeric_limits<char>
    : public _Integer_limits<char, CHAR_MIN, CHAR_MAX>
    {};

    __STL_TEMPLATE_NULL
    class numeric_limits<signed char>
    : public _Integer_limits<signed char, SCHAR_MIN, SCHAR_MAX>
    {};

    __STL_TEMPLATE_NULL
    class numeric_limits<unsigned char>
    : public _Integer_limits<unsigned char, 0, UCHAR_MAX>
    {};

    #ifdef __STL_HAS_WCHAR_T

    __STL_TEMPLATE_NULL
    class numeric_limits<wchar_t>
    : public _Integer_limits<wchar_t, INT_MIN, INT_MAX>
    {};

    #endif

    __STL_TEMPLATE_NULL
    class numeric_limits<short>
    : public _Integer_limits<short, SHRT_MIN, SHRT_MAX>
    {};

    __STL_TEMPLATE_NULL
    class numeric_limits<unsigned short>
    : public _Integer_limits<unsigned short, 0, USHRT_MAX>
    {};

    __STL_TEMPLATE_NULL
    class numeric_limits<int>
    : public _Integer_limits<int, INT_MIN, INT_MAX>
    {};

    __STL_TEMPLATE_NULL
    class numeric_limits<unsigned int>
    : public _Integer_limits<unsigned int, 0, UINT_MAX>
    {};

    __STL_TEMPLATE_NULL
    class numeric_limits<long>
    : public _Integer_limits<long, LONG_MIN, LONG_MAX>
    {};

    __STL_TEMPLATE_NULL
    class numeric_limits<unsigned long>
    : public _Integer_limits<unsigned long, 0, ULONG_MAX>
    {};

    #ifdef __STL_LONG_LONG

    // Some compilers have long long, but don't define the
    // LONGLONG_MIN and LONGLONG_MAX macros in limits.h. This
    // assumes that long long is 64 bits.
    #if !defined(LONGLONG_MIN) && !defined(LONGLONG_MAX) \
    && !defined(ULONGLONG_MAX)

    #define ULONGLONG_MAX 0xffffffffffffffffLLU
    #define LONGLONG_MAX 0x7fffffffffffffffLL
    #define LONGLONG_MIN (-LONGLONG_MAX - 1LL)

    #endif

    __STL_TEMPLATE_NULL
    class numeric_limits<long long>
    : public _Integer_limits<long long, LONGLONG_MIN, LONGLONG_MAX>
    {};

    __STL_TEMPLATE_NULL
    class numeric_limits<unsigned long long>
    : public _Integer_limits<unsigned long long, 0, ULONGLONG_MAX>
    {};

    #endif /* __STL_LONG_LONG */

    // Specializations for all built-in floating-point type.

    __STL_TEMPLATE_NULL class numeric_limits<float>
    : public _Floating_limits<float,
    FLT_MANT_DIG, // Binary digits of precision
    FLT_DIG, // Decimal digits of precision
    FLT_MIN_EXP, // Minimum exponent
    FLT_MAX_EXP, // Maximum exponent
    FLT_MIN_10_EXP, // Minimum base 10 exponent
    FLT_MAX_10_EXP, // Maximum base 10 exponent
    true, // conforms to iec559
    round_to_nearest>
    {
    public:
    static float min() __STL_NOTHROW { return FLT_MIN; }
    static float denorm_min() __STL_NOTHROW { return FLT_MIN; }
    static float max() __STL_NOTHROW { return FLT_MAX; }
    static float epsilon() __STL_NOTHROW { return FLT_EPSILON; }
    static float round_error() __STL_NOTHROW { return 0.5f; } // Units: ulps.
    static float infinity() __STL_NOTHROW;
    static float quiet_NaN() __STL_NOTHROW;
    static float signaling_NaN() __STL_NOTHROW;
    };

    __STL_TEMPLATE_NULL class numeric_limits<double>
    : public _Floating_limits<double,
    DBL_MANT_DIG, // Binary digits of precision
    DBL_DIG, // Decimal digits of precision
    DBL_MIN_EXP, // Minimum exponent
    DBL_MAX_EXP, // Maximum exponent
    DBL_MIN_10_EXP, // Minimum base 10 exponent
    DBL_MAX_10_EXP, // Maximum base 10 exponent
    true, // conforms to iec559
    round_to_nearest>
    {
    public:
    static double min() __STL_NOTHROW { return DBL_MIN; }
    static double denorm_min() __STL_NOTHROW { return DBL_MIN; }
    static double max() __STL_NOTHROW { return DBL_MAX; }
    static double epsilon() __STL_NOTHROW { return DBL_EPSILON; }
    static double round_error() __STL_NOTHROW { return 0.5; } // Units: ulps.
    static double infinity() __STL_NOTHROW;
    static double quiet_NaN() __STL_NOTHROW;
    static double signaling_NaN() __STL_NOTHROW;
    };

    __STL_TEMPLATE_NULL class numeric_limits<long double>
    : public _Floating_limits<long double,
    LDBL_MANT_DIG, // Binary digits of precision
    LDBL_DIG, // Decimal digits of precision
    LDBL_MIN_EXP, // Minimum exponent
    LDBL_MAX_EXP, // Maximum exponent
    LDBL_MIN_10_EXP,// Minimum base 10 exponent
    LDBL_MAX_10_EXP,// Maximum base 10 exponent
    false, // Doesn't conform to iec559
    round_to_nearest>
    {
    public:
    static long double min() __STL_NOTHROW { return LDBL_MIN; }
    static long double denorm_min() __STL_NOTHROW { return LDBL_MIN; }
    static long double max() __STL_NOTHROW { return LDBL_MAX; }
    static long double epsilon() __STL_NOTHROW { return LDBL_EPSILON; }
    static long double round_error() __STL_NOTHROW { return 4; } // Units: ulps.
    static long double infinity() __STL_NOTHROW;
    static long double quiet_NaN() __STL_NOTHROW;
    static long double signaling_NaN() __STL_NOTHROW;
    };

    // We write special values (Inf and NaN) as bit patterns and
    // cast the the appropriate floating-point types.

    #if defined(_MIPSEB)
    // Big-endian MIPS. float is 32 bits, double 64, long double 128.

    #define _Define_float(__f, __h, __l) \
    inline float numeric_limits<float>::__f() __STL_NOTHROW { \
    static const unsigned short __x[2] = { __h, __l }; \
    return *reinterpret_cast<const float*>(__x); }
    #define _Define_double(__f, __h, __l) \
    inline double numeric_limits<double>::__f() __STL_NOTHROW { \
    static const unsigned short __x[4] = { __h, __l }; \
    return *reinterpret_cast<const double*>(__x); }
    #define _Define_ldouble(__f, __h, __l) \
    inline long double numeric_limits<long double>::__f() __STL_NOTHROW { \
    static const unsigned short __x[8] = { __h, __l }; \
    return *reinterpret_cast<const long double*>(__x); }

    _Define_float(infinity, 0x7f80, 0)
    _Define_float(quiet_NaN, 0x7f81, 0)
    _Define_float(signaling_NaN, 0x7fc1, 0)

    _Define_double(infinity, 0x7ff0, 0)
    _Define_double(quiet_NaN, 0x7ff1, 0)
    _Define_double(signaling_NaN, 0x7ff9, 0)

    _Define_ldouble(infinity, 0x7ff0, 0)
    _Define_ldouble(quiet_NaN, 0x7ff1, 0)
    _Define_ldouble(signaling_NaN, 0x7ff9, 0)

    #elif defined(__i386) || defined(_M_IX86)
    // Little-endian ia32. float is 32 bits, double 64, long double 80.

    #define _Define_float(__f, __h, __l) \
    inline float numeric_limits<float>::__f() __STL_NOTHROW { \
    static const unsigned short __x[2] = { __l, __h }; \
    return *reinterpret_cast<const float*>(__x); }
    #define _Define_double(__f, __h, __l) \
    inline double numeric_limits<double>::__f() __STL_NOTHROW { \
    static const unsigned short __x[4] = { 0, 0, __l, __h }; \
    return *reinterpret_cast<const double*>(__x); }
    #define _Define_ldouble(__f, __h, __l) \
    inline long double numeric_limits<long double>::__f() __STL_NOTHROW { \
    static const unsigned short __x[5] = { 0, 0, 0, __l, __h }; \
    return *reinterpret_cast<const long double*>(__x); }

    _Define_float(infinity, 0x7f80, 0)
    _Define_float(quiet_NaN, 0x7fa0, 0)
    _Define_float(signaling_NaN, 0x7fc0, 0)

    _Define_double(infinity, 0x7ff0, 0)
    _Define_double(quiet_NaN, 0x7ff4, 0)
    _Define_double(signaling_NaN, 0x7ff8, 0)

    _Define_ldouble(infinity, 0x7fff, 0x8000)
    _Define_ldouble(quiet_NaN, 0x7fff, 0xa000)
    _Define_ldouble(signaling_NaN, 0x7fff, 0xc000)

    #else

    /* This is an architecture we don't know how to handle. Return some
    obviously wrong values. */

    #define _Define_float(__f) \
    inline float numeric_limits<float>::__f() __STL_NOTHROW { \
    return 0; }
    #define _Define_double(__f) \
    inline double numeric_limits<double>::__f() __STL_NOTHROW { \
    return 0; }
    #define _Define_ldouble(__f) \
    inline long double numeric_limits<long double>::__f() __STL_NOTHROW { \
    return 0; }

    _Define_float(infinity)
    _Define_float(quiet_NaN)
    _Define_float(signaling_NaN)

    _Define_double(infinity)
    _Define_double(quiet_NaN)
    _Define_double(signaling_NaN)

    _Define_ldouble(infinity)
    _Define_ldouble(quiet_NaN)
    _Define_ldouble(signaling_NaN)

    #endif

    #undef _Define_float
    #undef _Define_double
    #undef _Define_ldouble

    __STL_END_NAMESPACE

    #endif /* __SGI_CPP_LIMITS */

    // Local Variables:
    // mode:C++
    // End:

  10. #35
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    *
    * Copyright (c) 1994
    * Hewlett-Packard Company
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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) 1996,1997
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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 __SGI_STL_LIST
    #define __SGI_STL_LIST

    #include <stl_algobase.h>
    #include <stl_alloc.h>
    #include <stl_construct.h>
    #include <stl_uninitialized.h>
    #include <stl_list.h>

    #endif /* __SGI_STL_LIST */

    // Local Variables:
    // mode:C++
    // End:

  11. #36
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    *
    * Copyright (c) 1994
    * Hewlett-Packard Company
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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) 1996,1997
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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 __SGI_STL_LIST_H
    #define __SGI_STL_LIST_H

    #include <algobase.h>
    #include <alloc.h>
    #include <stl_list.h>

    #ifdef __STL_USE_NAMESPACES
    using __STD::list;
    #endif /* __STL_USE_NAMESPACES */

    #endif /* __SGI_STL_LIST_H */

    // Local Variables:
    // mode:C++
    // End:

  12. #37
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    *
    * Copyright (c) 1994
    * Hewlett-Packard Company
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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) 1996,1997
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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 __SGI_STL_MAP
    #define __SGI_STL_MAP

    #ifndef __SGI_STL_INTERNAL_TREE_H
    #include <stl_tree.h>
    #endif
    #include <stl_map.h>
    #include <stl_multimap.h>

    #endif /* __SGI_STL_MAP */

    // Local Variables:
    // mode:C++
    // End:

  13. #38
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    *
    * Copyright (c) 1994
    * Hewlett-Packard Company
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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) 1996,1997
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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 __SGI_STL_MAP_H
    #define __SGI_STL_MAP_H

    #ifndef __SGI_STL_INTERNAL_TREE_H
    #include <stl_tree.h>
    #endif
    #include <algobase.h>
    #include <alloc.h>
    #include <stl_map.h>

    #ifdef __STL_USE_NAMESPACES
    using __STD::rb_tree;
    using __STD::map;
    #endif /* __STL_USE_NAMESPACES */

    #endif /* __SGI_STL_MAP_H */

    // Local Variables:
    // mode:C++
    // End:

  14. #39
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    * Copyright (c) 1997-1999
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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 __SGI_STL_MEMORY
    #define __SGI_STL_MEMORY

    #include <stl_algobase.h>
    #include <stl_alloc.h>
    #include <stl_construct.h>
    #include <stl_tempbuf.h>
    #include <stl_uninitialized.h>
    #include <stl_raw_storage_iter.h>


    __STL_BEGIN_NAMESPACE

    #if defined(__SGI_STL_USE_AUTO_PTR_CONVERSIONS) && \
    defined(__STL_MEMBER_TEMPLATES)

    template<class _Tp1> struct auto_ptr_ref {
    _Tp1* _M_ptr;
    auto_ptr_ref(_Tp1* __p) : _M_ptr(__p) {}
    };

    #endif

    template <class _Tp> class auto_ptr {
    private:
    _Tp* _M_ptr;

    public:
    typedef _Tp element_type;

    explicit auto_ptr(_Tp* __p = 0) __STL_NOTHROW : _M_ptr(__p) {}
    auto_ptr(auto_ptr& __a) __STL_NOTHROW : _M_ptr(__a.release()) {}

    #ifdef __STL_MEMBER_TEMPLATES
    template <class _Tp1> auto_ptr(auto_ptr<_Tp1>& __a) __STL_NOTHROW
    : _M_ptr(__a.release()) {}
    #endif /* __STL_MEMBER_TEMPLATES */

    auto_ptr& operator=(auto_ptr& __a) __STL_NOTHROW {
    if (&__a != this) {
    delete _M_ptr;
    _M_ptr = __a.release();
    }
    return *this;
    }

    #ifdef __STL_MEMBER_TEMPLATES
    template <class _Tp1>
    auto_ptr& operator=(auto_ptr<_Tp1>& __a) __STL_NOTHROW {
    if (__a.get() != this->get()) {
    delete _M_ptr;
    _M_ptr = __a.release();
    }
    return *this;
    }
    #endif /* __STL_MEMBER_TEMPLATES */

    // Note: The C++ standard says there is supposed to be an empty throw
    // specification here, but omitting it is standard conforming. Its
    // presence can be detected only if _Tp::~_Tp() throws, but (17.4.3.6/2)
    // this is prohibited.
    ~auto_ptr() { delete _M_ptr; }

    _Tp& operator*() const __STL_NOTHROW {
    return *_M_ptr;
    }
    _Tp* operator->() const __STL_NOTHROW {
    return _M_ptr;
    }
    _Tp* get() const __STL_NOTHROW {
    return _M_ptr;
    }
    _Tp* release() __STL_NOTHROW {
    _Tp* __tmp = _M_ptr;
    _M_ptr = 0;
    return __tmp;
    }
    void reset(_Tp* __p = 0) __STL_NOTHROW {
    if (__p != _M_ptr) {
    delete _M_ptr;
    _M_ptr = __p;
    }
    }

    // According to the C++ standard, these conversions are required. Most
    // present-day compilers, however, do not enforce that requirement---and,
    // in fact, most present-day compilers do not support the language
    // features that these conversions rely on.

    #if defined(__SGI_STL_USE_AUTO_PTR_CONVERSIONS) && \
    defined(__STL_MEMBER_TEMPLATES)

    public:
    auto_ptr(auto_ptr_ref<_Tp> __ref) __STL_NOTHROW
    : _M_ptr(__ref._M_ptr) {}

    auto_ptr& operator=(auto_ptr_ref<_Tp> __ref) __STL_NOTHROW {
    if (__ref._M_ptr != this->get()) {
    delete _M_ptr;
    _M_ptr = __ref._M_ptr;
    }
    return *this;
    }

    template <class _Tp1> operator auto_ptr_ref<_Tp1>() __STL_NOTHROW
    { return auto_ptr_ref<_Tp1>(this->release()); }
    template <class _Tp1> operator auto_ptr<_Tp1>() __STL_NOTHROW
    { return auto_ptr<_Tp1>(this->release()); }

    #endif /* auto ptr conversions && member templates */
    };

    __STL_END_NAMESPACE

    #endif /* __SGI_STL_MEMORY */


    // Local Variables:
    // mode:C++
    // End:

  15. #40
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    *
    * Copyright (c) 1994
    * Hewlett-Packard Company
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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) 1996,1997
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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 __SGI_STL_MULTIMAP_H
    #define __SGI_STL_MULTIMAP_H

    #ifndef __SGI_STL_INTERNAL_TREE_H
    #include <stl_tree.h>
    #endif
    #include <algobase.h>
    #include <alloc.h>
    #include <stl_multimap.h>

    #ifdef __STL_USE_NAMESPACES
    using __STD::rb_tree;
    using __STD::multimap;
    #endif /* __STL_USE_NAMESPACES */

    #endif /* __SGI_STL_MULTIMAP_H */

    // Local Variables:
    // mode:C++
    // End:

  16. #41
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    *
    * Copyright (c) 1994
    * Hewlett-Packard Company
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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) 1996,1997
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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 __SGI_STL_MULTISET_H
    #define __SGI_STL_MULTISET_H

    #ifndef __SGI_STL_INTERNAL_TREE_H
    #include <stl_tree.h>
    #endif
    #include <algobase.h>
    #include <alloc.h>
    #include <stl_multiset.h>

    #ifdef __STL_USE_NAMESPACES
    using __STD::rb_tree;
    using __STD::multiset;
    #endif /* __STL_USE_NAMESPACES */

    #endif /* __SGI_STL_MULTISET_H */

    // Local Variables:
    // mode:C++
    // End:

  17. #42
    TB 2 TB Silver&Black's Avatar
    My Team
    San Antonio Spurs
    Post Count
    17,516

  18. #43
    Veteran Arcadian's Avatar
    My Team
    San Antonio Spurs
    Post Count
    9,423
    No, but you should have killed yourself when Duncan rang for the 5th time. Your favorite athlete is now universally considered inferior.

  19. #44
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    *
    * Copyright (c) 1994
    * Hewlett-Packard Company
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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) 1996,1997
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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 __SGI_STL_NUMERIC
    #define __SGI_STL_NUMERIC

    #include <stl_config.h>
    #include <stl_relops.h>
    #include <stddef.h>

    #ifdef __STL_USE_NEW_IOSTREAMS
    #include <iostream>
    #else /* __STL_USE_NEW_IOSTREAMS */
    #include <iostream.h>
    #endif /* __STL_USE_NEW_IOSTREAMS */

    #include <stl_iterator_base.h>
    #include <stl_iterator.h>
    #include <stl_function.h>
    #include <stl_numeric.h>

    #endif /* __SGI_STL_NUMERIC */

    // Local Variables:
    // mode:C++
    // End:

  20. #45
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    *
    * Copyright (c) 1994
    * Hewlett-Packard Company
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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) 1996,1997
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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 __SGI_STL_PAIR_H
    #define __SGI_STL_PAIR_H

    #ifndef __STL_CONFIG_H
    #include <stl_config.h>
    #endif
    #ifndef __SGI_STL_INTERNAL_RELOPS
    #include <stl_relops.h>
    #endif
    #ifndef __SGI_STL_INTERNAL_PAIR_H
    #include <stl_pair.h>
    #endif

    #ifdef __STL_USE_NAMESPACES

    using __STD::pair;
    using __STD::make_pair;

    #endif /* __STL_USE_NAMESPACES */

    #endif /* __SGI_STL_PAIR_H */

    // Local Variables:
    // mode:C++
    // End:

  21. #46
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    * Copyright (c) 1996
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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 __SGI_STL_PTHREAD_ALLOC
    #define __SGI_STL_PTHREAD_ALLOC

    // Pthread-specific node allocator.
    // This is similar to the default allocator, except that free-list
    // information is kept separately for each thread, avoiding locking.
    // This should be reasonably fast even in the presence of threads.
    // The down side is that storage may not be well-utilized.
    // It is not an error to allocate memory in thread A and deallocate
    // it in thread B. But this effectively transfers ownership of the memory,
    // so that it can only be reallocated by thread B. Thus this can effectively
    // result in a storage leak if it's done on a regular basis.
    // It can also result in frequent sharing of
    // cache lines among processors, with potentially serious performance
    // consequences.

    #include <errno.h>
    #include <stl_config.h>
    #include <stl_alloc.h>
    #ifndef __RESTRICT
    # define __RESTRICT
    #endif

    #ifndef __STL_NO_BAD_ALLOC
    # include <new>
    #endif

    __STL_BEGIN_NAMESPACE

    #define __STL_DATA_ALIGNMENT 8

    union _Pthread_alloc_obj {
    union _Pthread_alloc_obj * __free_list_link;
    char __client_data[__STL_DATA_ALIGNMENT]; /* The client sees this. */
    };

    // Pthread allocators don't appear to the client to have meaningful
    // instances. We do in fact need to associate some state with each
    // thread. That state is represented by
    // _Pthread_alloc_per_thread_state<_Max_size>.

    template<size_t _Max_size>
    struct _Pthread_alloc_per_thread_state {
    typedef _Pthread_alloc_obj __obj;
    enum { _S_NFREELISTS = _Max_size/__STL_DATA_ALIGNMENT };
    _Pthread_alloc_obj* volatile __free_list[_S_NFREELISTS];
    _Pthread_alloc_per_thread_state<_Max_size> * __next;
    // Free list link for list of available per thread structures.
    // When one of these becomes available for reuse due to thread
    // termination, any objects in its free list remain associated
    // with it. The whole structure may then be used by a newly
    // created thread.
    _Pthread_alloc_per_thread_state() : __next(0)
    {
    memset((void *)__free_list, 0, (size_t) _S_NFREELISTS * sizeof(__obj *));
    }
    // Returns an object of size __n, and possibly adds to size n free list.
    void *_M_refill(size_t __n);
    };

    // Pthread-specific allocator.
    // The argument specifies the largest object size allocated from per-thread
    // free lists. Larger objects are allocated using malloc_alloc.
    // Max_size must be a power of 2.
    template <size_t _Max_size = 128>
    class _Pthread_alloc_template {

    public: // but only for internal use:

    typedef _Pthread_alloc_obj __obj;

    // Allocates a chunk for nobjs of size size. nobjs may be reduced
    // if it is inconvenient to allocate the requested number.
    static char *_S_chunk_alloc(size_t __size, int &__nobjs);

    enum {_S_ALIGN = __STL_DATA_ALIGNMENT};

    static size_t _S_round_up(size_t __bytes) {
    return (((__bytes) + (int) _S_ALIGN-1) & ~((int) _S_ALIGN - 1));
    }
    static size_t _S_freelist_index(size_t __bytes) {
    return (((__bytes) + (int) _S_ALIGN-1)/(int)_S_ALIGN - 1);
    }

    private:
    // Chunk allocation state. And other shared state.
    // Protected by _S_chunk_allocator_lock.
    static pthread_mutex_t _S_chunk_allocator_lock;
    static char *_S_start_free;
    static char *_S_end_free;
    static size_t _S_heap_size;
    static _Pthread_alloc_per_thread_state<_Max_size>* _S_free_per_thread_states;
    static pthread_key_t _S_key;
    static bool _S_key_initialized;
    // Pthread key under which per thread state is stored.
    // Allocator instances that are currently unclaimed by any thread.
    static void _S_destructor(void *instance);
    // Function to be called on thread exit to reclaim per thread
    // state.
    static _Pthread_alloc_per_thread_state<_Max_size> *_S_new_per_thread_state();
    // Return a recycled or new per thread state.
    static _Pthread_alloc_per_thread_state<_Max_size> *_S_get_per_thread_state();
    // ensure that the current thread has an associated
    // per thread state.
    class _M_lock;
    friend class _M_lock;
    class _M_lock {
    public:
    _M_lock () { pthread_mutex_lock(&_S_chunk_allocator_lock); }
    ~_M_lock () { pthread_mutex_unlock(&_S_chunk_allocator_lock); }
    };

    public:

    /* n must be > 0 */
    static void * allocate(size_t __n)
    {
    __obj * volatile * __my_free_list;
    __obj * __RESTRICT __result;
    _Pthread_alloc_per_thread_state<_Max_size>* __a;

    if (__n > _Max_size) {
    return(malloc_alloc::allocate(__n));
    }
    if (!_S_key_initialized ||
    !(__a = (_Pthread_alloc_per_thread_state<_Max_size>*)
    pthread_getspecific(_S_key))) {
    __a = _S_get_per_thread_state();
    }
    __my_free_list = __a -> __free_list + _S_freelist_index(__n);
    __result = *__my_free_list;
    if (__result == 0) {
    void *__r = __a -> _M_refill(_S_round_up(__n));
    return __r;
    }
    *__my_free_list = __result -> __free_list_link;
    return (__result);
    };

    /* p may not be 0 */
    static void deallocate(void *__p, size_t __n)
    {
    __obj *__q = (__obj *)__p;
    __obj * volatile * __my_free_list;
    _Pthread_alloc_per_thread_state<_Max_size>* __a;

    if (__n > _Max_size) {
    malloc_alloc::deallocate(__p, __n);
    return;
    }
    if (!_S_key_initialized ||
    !(__a = (_Pthread_alloc_per_thread_state<_Max_size> *)
    pthread_getspecific(_S_key))) {
    __a = _S_get_per_thread_state();
    }
    __my_free_list = __a->__free_list + _S_freelist_index(__n);
    __q -> __free_list_link = *__my_free_list;
    *__my_free_list = __q;
    }

    static void * reallocate(void *__p, size_t __old_sz, size_t __new_sz);

    } ;

    typedef _Pthread_alloc_template<> pthread_alloc;


    template <size_t _Max_size>
    void _Pthread_alloc_template<_Max_size>::_S_destructor( void * __instance)
    {
    _M_lock __lock_instance; // Need to acquire lock here.
    _Pthread_alloc_per_thread_state<_Max_size>* __s =
    (_Pthread_alloc_per_thread_state<_Max_size> *)__instance;
    __s -> __next = _S_free_per_thread_states;
    _S_free_per_thread_states = __s;
    }

    template <size_t _Max_size>
    _Pthread_alloc_per_thread_state<_Max_size> *
    _Pthread_alloc_template<_Max_size>::_S_new_per_thr ead_state()
    {
    /* lock already held here. */
    if (0 != _S_free_per_thread_states) {
    _Pthread_alloc_per_thread_state<_Max_size> *__result =
    _S_free_per_thread_states;
    _S_free_per_thread_states = _S_free_per_thread_states -> __next;
    return __result;
    } else {
    return new _Pthread_alloc_per_thread_state<_Max_size>;
    }
    }

    template <size_t _Max_size>
    _Pthread_alloc_per_thread_state<_Max_size> *
    _Pthread_alloc_template<_Max_size>::_S_get_per_thr ead_state()
    {
    /*REFERENCED*/
    _M_lock __lock_instance; // Need to acquire lock here.
    int __ret_code;
    _Pthread_alloc_per_thread_state<_Max_size> * __result;
    if (!_S_key_initialized) {
    if (pthread_key_create(&_S_key, _S_destructor)) {
    __THROW_BAD_ALLOC; // defined in stl_alloc.h
    }
    _S_key_initialized = true;
    }
    __result = _S_new_per_thread_state();
    __ret_code = pthread_setspecific(_S_key, __result);
    if (__ret_code) {
    if (__ret_code == ENOMEM) {
    __THROW_BAD_ALLOC;
    } else {
    // EINVAL
    abort();
    }
    }
    return __result;
    }

    /* We allocate memory in large chunks in order to avoid fragmenting */
    /* the malloc heap too much. */
    /* We assume that size is properly aligned. */
    template <size_t _Max_size>
    char *_Pthread_alloc_template<_Max_size>
    ::_S_chunk_alloc(size_t __size, int &__nobjs)
    {
    {
    char * __result;
    size_t __total_bytes;
    size_t __bytes_left;
    /*REFERENCED*/
    _M_lock __lock_instance; // Acquire lock for this routine

    __total_bytes = __size * __nobjs;
    __bytes_left = _S_end_free - _S_start_free;
    if (__bytes_left >= __total_bytes) {
    __result = _S_start_free;
    _S_start_free += __total_bytes;
    return(__result);
    } else if (__bytes_left >= __size) {
    __nobjs = __bytes_left/__size;
    __total_bytes = __size * __nobjs;
    __result = _S_start_free;
    _S_start_free += __total_bytes;
    return(__result);
    } else {
    size_t __bytes_to_get =
    2 * __total_bytes + _S_round_up(_S_heap_size >> 4);
    // Try to make use of the left-over piece.
    if (__bytes_left > 0) {
    _Pthread_alloc_per_thread_state<_Max_size>* __a =
    (_Pthread_alloc_per_thread_state<_Max_size>*)
    pthread_getspecific(_S_key);
    __obj * volatile * __my_free_list =
    __a->__free_list + _S_freelist_index(__bytes_left);

    ((__obj *)_S_start_free) -> __free_list_link = *__my_free_list;
    *__my_free_list = (__obj *)_S_start_free;
    }
    # ifdef _SGI_SOURCE
    // Try to get memory that's aligned on something like a
    // cache line boundary, so as to avoid parceling out
    // parts of the same line to different threads and thus
    // possibly different processors.
    {
    const int __cache_line_size = 128; // probable upper bound
    __bytes_to_get &= ~(__cache_line_size-1);
    _S_start_free = (char *)memalign(__cache_line_size, __bytes_to_get);
    if (0 == _S_start_free) {
    _S_start_free = (char *)malloc_alloc::allocate(__bytes_to_get);
    }
    }
    # else /* !SGI_SOURCE */
    _S_start_free = (char *)malloc_alloc::allocate(__bytes_to_get);
    # endif
    _S_heap_size += __bytes_to_get;
    _S_end_free = _S_start_free + __bytes_to_get;
    }
    }
    // lock is released here
    return(_S_chunk_alloc(__size, __nobjs));
    }


    /* Returns an object of size n, and optionally adds to size n free list.*/
    /* We assume that n is properly aligned. */
    /* We hold the allocation lock. */
    template <size_t _Max_size>
    void *_Pthread_alloc_per_thread_state<_Max_size>
    ::_M_refill(size_t __n)
    {
    int __nobjs = 128;
    char * __chunk =
    _Pthread_alloc_template<_Max_size>::_S_chunk_alloc (__n, __nobjs);
    __obj * volatile * __my_free_list;
    __obj * __result;
    __obj * __current_obj, * __next_obj;
    int __i;

    if (1 == __nobjs) {
    return(__chunk);
    }
    __my_free_list = __free_list
    + _Pthread_alloc_template<_Max_size>::_S_freelist_in dex(__n);

    /* Build free list in chunk */
    __result = (__obj *)__chunk;
    *__my_free_list = __next_obj = (__obj *)(__chunk + __n);
    for (__i = 1; ; __i++) {
    __current_obj = __next_obj;
    __next_obj = (__obj *)((char *)__next_obj + __n);
    if (__nobjs - 1 == __i) {
    __current_obj -> __free_list_link = 0;
    break;
    } else {
    __current_obj -> __free_list_link = __next_obj;
    }
    }
    return(__result);
    }

    template <size_t _Max_size>
    void *_Pthread_alloc_template<_Max_size>
    ::reallocate(void *__p, size_t __old_sz, size_t __new_sz)
    {
    void * __result;
    size_t __copy_sz;

    if (__old_sz > _Max_size
    && __new_sz > _Max_size) {
    return(realloc(__p, __new_sz));
    }
    if (_S_round_up(__old_sz) == _S_round_up(__new_sz)) return(__p);
    __result = allocate(__new_sz);
    __copy_sz = __new_sz > __old_sz? __old_sz : __new_sz;
    memcpy(__result, __p, __copy_sz);
    deallocate(__p, __old_sz);
    return(__result);
    }

    template <size_t _Max_size>
    _Pthread_alloc_per_thread_state<_Max_size> *
    _Pthread_alloc_template<_Max_size>::_S_free_per_th read_states = 0;

    template <size_t _Max_size>
    pthread_key_t _Pthread_alloc_template<_Max_size>::_S_key;

    template <size_t _Max_size>
    bool _Pthread_alloc_template<_Max_size>::_S_key_initial ized = false;

    template <size_t _Max_size>
    pthread_mutex_t _Pthread_alloc_template<_Max_size>::_S_chunk_alloc ator_lock
    = PTHREAD_MUTEX_INITIALIZER;

    template <size_t _Max_size>
    char *_Pthread_alloc_template<_Max_size>
    ::_S_start_free = 0;

    template <size_t _Max_size>
    char *_Pthread_alloc_template<_Max_size>
    ::_S_end_free = 0;

    template <size_t _Max_size>
    size_t _Pthread_alloc_template<_Max_size>
    ::_S_heap_size = 0;

    #ifdef __STL_USE_STD_ALLOCATORS

    template <class _Tp>
    class pthread_allocator {
    typedef pthread_alloc _S_Alloc; // The underlying allocator.
    public:
    typedef size_t size_type;
    typedef ptrdiff_t difference_type;
    typedef _Tp* pointer;
    typedef const _Tp* const_pointer;
    typedef _Tp& reference;
    typedef const _Tp& const_reference;
    typedef _Tp value_type;

    template <class _NewType> struct rebind {
    typedef pthread_allocator<_NewType> other;
    };

    pthread_allocator() __STL_NOTHROW {}
    pthread_allocator(const pthread_allocator& a) __STL_NOTHROW {}
    template <class _OtherType>
    pthread_allocator(const pthread_allocator<_OtherType>&)
    __STL_NOTHROW {}
    ~pthread_allocator() __STL_NOTHROW {}

    pointer address(reference __x) const { return &__x; }
    const_pointer address(const_reference __x) const { return &__x; }

    // __n is permitted to be 0. The C++ standard says nothing about what
    // the return value is when __n == 0.
    _Tp* allocate(size_type __n, const void* = 0) {
    return __n != 0 ? static_cast<_Tp*>(_S_Alloc::allocate(__n * sizeof(_Tp)))
    : 0;
    }

    // p is not permitted to be a null pointer.
    void deallocate(pointer __p, size_type __n)
    { _S_Alloc::deallocate(__p, __n * sizeof(_Tp)); }

    size_type max_size() const __STL_NOTHROW
    { return size_t(-1) / sizeof(_Tp); }

    void construct(pointer __p, const _Tp& __val) { new(__p) _Tp(__val); }
    void destroy(pointer _p) { _p->~_Tp(); }
    };

    template<>
    class pthread_allocator<void> {
    public:
    typedef size_t size_type;
    typedef ptrdiff_t difference_type;
    typedef void* pointer;
    typedef const void* const_pointer;
    typedef void value_type;

    template <class _NewType> struct rebind {
    typedef pthread_allocator<_NewType> other;
    };
    };

    template <size_t _Max_size>
    inline bool operator==(const _Pthread_alloc_template<_Max_size>&,
    const _Pthread_alloc_template<_Max_size>&)
    {
    return true;
    }

    template <class _T1, class _T2>
    inline bool operator==(const pthread_allocator<_T1>&,
    const pthread_allocator<_T2>& a2)
    {
    return true;
    }

    template <class _T1, class _T2>
    inline bool operator!=(const pthread_allocator<_T1>&,
    const pthread_allocator<_T2>&)
    {
    return false;
    }

    template <class _Tp, size_t _Max_size>
    struct _Alloc_traits<_Tp, _Pthread_alloc_template<_Max_size> >
    {
    static const bool _S_instanceless = true;
    typedef simple_alloc<_Tp, _Pthread_alloc_template<_Max_size> > _Alloc_type;
    typedef __allocator<_Tp, _Pthread_alloc_template<_Max_size> >
    allocator_type;
    };

    template <class _Tp, class _Atype, size_t _Max>
    struct _Alloc_traits<_Tp, __allocator<_Atype, _Pthread_alloc_template<_Max> > >
    {
    static const bool _S_instanceless = true;
    typedef simple_alloc<_Tp, _Pthread_alloc_template<_Max> > _Alloc_type;
    typedef __allocator<_Tp, _Pthread_alloc_template<_Max> > allocator_type;
    };

    template <class _Tp, class _Atype>
    struct _Alloc_traits<_Tp, pthread_allocator<_Atype> >
    {
    static const bool _S_instanceless = true;
    typedef simple_alloc<_Tp, _Pthread_alloc_template<> > _Alloc_type;
    typedef pthread_allocator<_Tp> allocator_type;
    };


    #endif /* __STL_USE_STD_ALLOCATORS */

    __STL_END_NAMESPACE

    #endif /* __SGI_STL_PTHREAD_ALLOC */

    // Local Variables:
    // mode:C++
    // End:

  22. #47
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    * Copyright (c) 1996-1997
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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 __SGI_STL_PTHREAD_ALLOC_H
    #define __SGI_STL_PTHREAD_ALLOC_H

    #include <pthread_alloc>

    #ifdef __STL_USE_NAMESPACES

    using __STD::_Pthread_alloc_template;
    using __STD::pthread_alloc;

    #endif /* __STL_USE_NAMESPACES */


    #endif /* __SGI_STL_PTHREAD_ALLOC_H */

    // Local Variables:
    // mode:C++
    // End:

  23. #48
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    *
    * Copyright (c) 1994
    * Hewlett-Packard Company
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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) 1996,1997
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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 __SGI_STL_QUEUE
    #define __SGI_STL_QUEUE

    #include <stl_algobase.h>
    #include <stl_alloc.h>
    #include <stl_construct.h>
    #include <stl_uninitialized.h>
    #include <stl_vector.h>
    #include <stl_bvector.h>
    #include <stl_heap.h>
    #include <stl_deque.h>
    #include <stl_function.h>
    #include <stl_queue.h>

    #endif /* __SGI_STL_QUEUE */

    // Local Variables:
    // mode:C++
    // End:

  24. #49
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    * Copyright (c) 1997
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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 __SGI_STL_ROPE
    #define __SGI_STL_ROPE

    #include <stl_algobase.h>
    #include <stl_tempbuf.h>
    #include <stl_algo.h>
    #include <stl_function.h>
    #include <stl_numeric.h>
    #include <stl_alloc.h>
    #include <stl_construct.h>
    #include <stl_uninitialized.h>
    #include <stl_hash_fun.h>
    #include <stl_rope.h>

    #endif /* __SGI_STL_ROPE */

    // Local Variables:
    // mode:C++
    // End:

  25. #50
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Post Count
    97,883
    /*
    * Copyright (c) 1997
    * Silicon Graphics Computer Systems, Inc.
    *
    * Permission to use, copy, modify, distribute and sell this software
    * and its do entation 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 do entation. 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 __SGI_STL_ROPE_H
    #define __SGI_STL_ROPE_H

    #include <hashtable.h>
    #include <stl_rope.h>

    #ifdef __STL_USE_NAMESPACES

    using __STD::char_producer;
    using __STD:ence_buffer;
    using __STD::rope;
    using __STD::crope;
    using __STD::wrope;

    #endif /* __STL_USE_NAMESPACES */

    #endif /* __SGI_STL_ROPE_H */

    // Local Variables:
    // mode:C++
    // End:

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •