亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? stl_algobase.h

?? 粗慥集成算法集合 ,并有詳細的文檔資料和測試數據處
?? H
?? 第 1 頁 / 共 2 頁
字號:
/*
 *
 * Copyright (c) 1994
 * Hewlett-Packard Company
 *
 * Copyright (c) 1996,1997
 * Silicon Graphics Computer Systems, Inc.
 *
 * Copyright (c) 1997
 * Moscow Center for SPARC Technology
 *
 * Copyright (c) 1999 
 * Boris Fomitchev
 *
 * This material is provided "as is", with absolutely no warranty expressed
 * or implied. Any use is at your own risk.
 *
 * Permission to use or copy this software for any purpose is hereby granted 
 * without fee, provided the above notices are retained on all copies.
 * Permission to modify the code and to distribute modified code is granted,
 * provided the above notices are retained, and a notice that the code was
 * modified is included with the above copyright notice.
 *
 */

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


#ifndef __SGI_STL_INTERNAL_ALGOBASE_H
#define __SGI_STL_INTERNAL_ALGOBASE_H

#ifndef __STL_CONFIG_H
#include <stl_config.h>
#endif

# if ! defined (__STLPORT_CSTDDEF)
#  include <cstddef>
# endif

#if !defined (__STLPORT_DEBUG_H) && (defined  (__STL_DEBUG) || defined (__STL_ASSERTIONS))
# include <stldebug.h>
#endif

#ifndef __STLPORT_CSTRING
# include <cstring>
#endif

#ifndef __STLPORT_CLIMITS
# include <climits>
#endif

# if ! defined (__STLPORT_CSTDLIB)
#  include <cstdlib>
# endif

# ifndef __SGI_STL_INTERNAL_RELOPS
#  include <stl_relops.h>
# endif

# ifndef __TYPE_TRAITS_H
#  include <type_traits.h>
# endif

# ifndef __SGI_STL_INTERNAL_PAIR_H
#  include <stl_pair.h>
# endif

#ifndef __SGI_STL_INTERNAL_ITERATOR_BASE_H
# include <stl_iterator_base.h>
#endif

__STL_BEGIN_NAMESPACE

// swap and iter_swap

template <class _ForwardIter1, class _ForwardIter2, class _Tp>
inline void __iter_swap(_ForwardIter1 __a, _ForwardIter2 __b, _Tp*) {
  _Tp __tmp = *__a;
  *__a = *__b;
  *__b = __tmp;
}

template <class _ForwardIter1, class _ForwardIter2>
inline void iter_swap(_ForwardIter1 __a, _ForwardIter2 __b) {
  __iter_swap(__a, __b, __VALUE_TYPE(__a));
}

template <class _Tp>
inline void swap(_Tp& __a, _Tp& __b) {
  _Tp __tmp = __a;
  __a = __b;
  __b = __tmp;
}

//--------------------------------------------------
// min and max

#undef min
#undef max

# if !defined ( __MINMAX_DEFINED ) || defined (__STL_USE_OWN_NAMESPACE)
# define __MINMAX_DEFINED

template <class _Tp>
inline const _Tp& min(const _Tp& __a, const _Tp& __b) {
  return __b < __a ? __b : __a;
}

template <class _Tp>
inline const _Tp& max(const _Tp& __a, const _Tp& __b) {
  return  __a < __b ? __b : __a;
}

# ifdef __BORLANDC__
inline unsigned long min (unsigned long __a, unsigned long __b)
{
  return __b < __a ? __b : __a;
}

inline unsigned long max (unsigned long __a, unsigned long __b)
{
  return  __a < __b ? __b : __a;
}
# endif
#endif /* __MINMAX_DEFINED */

template <class _Tp, class _Compare>
inline const _Tp& min(const _Tp& __a, const _Tp& __b, _Compare __comp) {
  return __comp(__b, __a) ? __b : __a;
}

template <class _Tp, class _Compare>
inline const _Tp& max(const _Tp& __a, const _Tp& __b, _Compare __comp) {
  return __comp(__a, __b) ? __b : __a;
}

//--------------------------------------------------
// copy

// All of these auxiliary functions serve two purposes.  (1) Replace
// calls to copy with memmove whenever possible.  (Memmove, not memcpy,
// because the input and output ranges are permitted to overlap.)
// (2) If we're using random access iterators, then write the loop as
// a for loop with an explicit count.

template <class _InputIter, class _OutputIter, class _Distance>
inline _OutputIter __copy(_InputIter __first, _InputIter __last,
                          _OutputIter __result,
                          input_iterator_tag, _Distance*)
{
  for ( ; __first != __last; ++__result, ++__first)
    *__result = *__first;
  return __result;
}

# if defined (__STL_NONTEMPL_BASE_MATCH_BUG) 
template <class _InputIter, class _OutputIter, class _Distance>
inline _OutputIter __copy(_InputIter __first, _InputIter __last,
			  _OutputIter __result, forward_iterator_tag, _Distance* __dis)
{
  return __copy(__first, __last, __result, input_iterator_tag(),
		__dis);
}


template <class _InputIter, class _OutputIter, class _Distance>
inline _OutputIter __copy(_InputIter __first, _InputIter __last,
			  _OutputIter __result, bidirectional_iterator_tag, _Distance* __dis)
{
  return __copy(__first, __last, __result, input_iterator_tag(),
		__dis);
}
# endif 

template <class _RandomAccessIter, class _OutputIter, class _Distance>
inline _OutputIter
__copy(_RandomAccessIter __first, _RandomAccessIter __last,
       _OutputIter __result, random_access_iterator_tag, _Distance*)
{
  for (_Distance __n = __last - __first; __n > 0; --__n) {
    *__result = *__first;
    ++__first;
    ++__result;
  }
  return __result;
}

template <class _Tp>
inline _Tp*
__copy_trivial(const _Tp* __first, const _Tp* __last, _Tp* __result) {
  memmove((void*)__result, (void*)__first, sizeof(_Tp) * (__last - __first));
  return __result + (__last - __first);
}


#if defined(__STL_FUNCTION_TMPL_PARTIAL_ORDER)

template <class _InputIter, class _OutputIter>
inline _OutputIter __copy_aux2(_InputIter __first, _InputIter __last,
                               _OutputIter __result, __false_type) {
  return __copy(__first, __last, __result,
                __ITERATOR_CATEGORY(__first),
                __DISTANCE_TYPE(__first));
}

template <class _InputIter, class _OutputIter>
inline _OutputIter __copy_aux2(_InputIter __first, _InputIter __last,
                               _OutputIter __result, __true_type) {
  return __copy(__first, __last, __result,
                __ITERATOR_CATEGORY(__first),
                __DISTANCE_TYPE(__first));
}

# ifndef __APOGEE__
template <class _Tp>
inline _Tp* __copy_aux2(_Tp* __first, _Tp* __last, _Tp* __result,
                        __true_type) {
  return __copy_trivial(__first, __last, __result);
}
# endif

template <class _Tp>
inline _Tp* __copy_aux2(const _Tp* __first, const _Tp* __last, _Tp* __result,
                        __true_type) {
  return __copy_trivial(__first, __last, __result);
}

template <class _InputIter, class _OutputIter, class _Tp>
inline _OutputIter __copy_aux(_InputIter __first, _InputIter __last,
                              _OutputIter __result, _Tp*) {
  typedef typename __type_traits<_Tp>::has_trivial_assignment_operator
          _Trivial;
  return __copy_aux2(__first, __last, __result, _Trivial());
}

template <class _InputIter, class _OutputIter>
inline _OutputIter copy(_InputIter __first, _InputIter __last,
                        _OutputIter __result) {
  return __copy_aux(__first, __last, __result, __VALUE_TYPE(__first));
}

// Hack for compilers that don't have partial ordering of function templates
// but do have partial specialization of class templates.
#elif defined __STL_CLASS_PARTIAL_SPECIALIZATION 

template <class _InputIter, class _OutputIter, class _BoolType>
struct __copy_dispatch {
  static _OutputIter copy(_InputIter __first, _InputIter __last,
                          _OutputIter __result) {
    typedef typename iterator_traits<_InputIter>::iterator_category _Category;
    typedef typename iterator_traits<_InputIter>::difference_type _Distance;
    return __copy(__first, __last, __result, _Category(), (_Distance*) 0);
  }
};

template <class _Tp>
struct __copy_dispatch<_Tp*, _Tp*, __true_type>
{
  static _Tp* copy(const _Tp* __first, const _Tp* __last, _Tp* __result) {
# ifdef __STL_EXPLICIT_FUNCTION_TMPL_ARGS
  	// dwa 11/19/98 -- CW bug workaround
    return __copy_trivial<_Tp>(__first, __last, __result);
# else
    return __copy_trivial(__first, __last, __result);
# endif
  }
};

template <class _Tp>
struct __copy_dispatch<const _Tp*, _Tp*, __true_type>
{
  static _Tp* copy(const _Tp* __first, const _Tp* __last, _Tp* __result) {
    return __copy_trivial(__first, __last, __result);
  }
};

template <class _InputIter, class _OutputIter>
inline _OutputIter copy(_InputIter __first, _InputIter __last,
                        _OutputIter __result) {
  typedef typename iterator_traits<_InputIter>::value_type _Tp;
  typedef typename __type_traits<_Tp>::has_trivial_assignment_operator
          _Trivial;
  return __copy_dispatch<_InputIter, _OutputIter, _Trivial>
    ::copy(__first, __last, __result);
}

#else /* __STL_CLASS_PARTIAL_SPECIALIZATION */

template <class _InputIter, class _OutputIter>
inline _OutputIter copy(_InputIter __first, _InputIter __last,
                        _OutputIter __result)
{
  return __copy(__first, __last, __result,
                __ITERATOR_CATEGORY(__first),
                __DISTANCE_TYPE(__first));
}

#define __SGI_STL_DECLARE_COPY_TRIVIAL(_Tp)                                \
  inline _Tp* copy(const _Tp* __first, const _Tp* __last, _Tp* __result) { \
    return (_Tp*)__copy_trivial(__first, __last, __result);                      \
  }

__SGI_STL_DECLARE_COPY_TRIVIAL(char)
# ifndef __STL_NO_SIGNED_BUILTINS
__SGI_STL_DECLARE_COPY_TRIVIAL(signed char)
# endif
__SGI_STL_DECLARE_COPY_TRIVIAL(unsigned char)
__SGI_STL_DECLARE_COPY_TRIVIAL(short)
__SGI_STL_DECLARE_COPY_TRIVIAL(unsigned short)
__SGI_STL_DECLARE_COPY_TRIVIAL(int)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久五月婷婷| 久久久久久一二三区| 日韩视频123| 中文字幕精品—区二区四季| 亚洲乱码中文字幕综合| 奇米影视7777精品一区二区| 99精品久久99久久久久| 欧美成人精品二区三区99精品| 亚洲欧美视频一区| 国产精品一区二区在线播放| 欧美乱妇15p| 樱桃视频在线观看一区| 国产精品1区2区| 日韩欧美激情四射| 亚洲自拍偷拍综合| 99精品视频在线播放观看| 26uuu精品一区二区在线观看| 亚洲电影欧美电影有声小说| av在线不卡网| 国产日韩欧美高清在线| 免费成人你懂的| 欧美绝品在线观看成人午夜影视| 国产精品不卡一区二区三区| 精品系列免费在线观看| 91麻豆精品国产综合久久久久久 | 中文字幕乱码亚洲精品一区| 男人操女人的视频在线观看欧美| 欧美影视一区在线| 亚洲精品五月天| 91在线看国产| 综合激情成人伊人| 99热在这里有精品免费| 国产精品私人影院| 成人精品免费看| 国产香蕉久久精品综合网| 狠狠v欧美v日韩v亚洲ⅴ| 精品国产亚洲在线| 国产一区二区在线看| 精品少妇一区二区三区在线播放 | 精品伊人久久久久7777人| 色国产综合视频| 一区二区三区av电影| 色综合一区二区三区| 一区二区三区美女视频| 欧美天天综合网| 亚洲国产美女搞黄色| 欧美午夜在线一二页| 青青草精品视频| 日韩欧美中文字幕制服| 精品一区二区免费视频| 欧美国产日韩一二三区| av成人免费在线| 亚洲精品日韩综合观看成人91| 色婷婷狠狠综合| 午夜精品国产更新| 日韩三级视频在线看| 国产一区二区三区精品欧美日韩一区二区三区 | 一区二区三区在线免费视频 | 在线不卡一区二区| 久久99国产精品久久99果冻传媒| 久久久午夜精品| 粉嫩蜜臀av国产精品网站| 亚洲六月丁香色婷婷综合久久| 日韩亚洲电影在线| 精品亚洲aⅴ乱码一区二区三区| 国产农村妇女精品| 在线欧美小视频| 久久精品免费观看| 中文字幕一区二区三区四区不卡| 欧美怡红院视频| 日本一区二区不卡视频| 国产91高潮流白浆在线麻豆 | 成人高清视频在线| 亚洲一区影音先锋| 欧美r级电影在线观看| 99热国产精品| 免费观看成人av| 中文字幕在线观看一区| 777欧美精品| 波多野结衣精品在线| 日韩二区三区四区| 亚洲精品中文在线影院| 精品少妇一区二区三区视频免付费| 成人免费福利片| 麻豆国产精品官网| 日韩一区有码在线| 欧美精品一区二区三区蜜桃视频| 日韩精品一区二区三区蜜臀| 亚洲v中文字幕| 久久九九99视频| 欧美精品丝袜久久久中文字幕| 成人v精品蜜桃久久一区| 免费av成人在线| 亚洲自拍另类综合| 欧美国产精品v| 日韩视频在线永久播放| 色8久久精品久久久久久蜜| 国产91精品精华液一区二区三区| 免费在线一区观看| 亚洲一二三四在线观看| 日韩一区中文字幕| 中文字幕免费在线观看视频一区| 国产麻豆日韩欧美久久| aaa亚洲精品一二三区| 国产精品午夜久久| 久久精品视频免费| 久久亚洲综合色一区二区三区| 欧美色图一区二区三区| 91视频免费播放| av午夜精品一区二区三区| 国内精品不卡在线| 国产一区二区三区在线看麻豆| 美女视频网站久久| 日韩精品乱码免费| 日本欧美一区二区三区| 中文字幕在线观看不卡视频| 欧美女孩性生活视频| 欧美制服丝袜第一页| 91在线观看地址| 91在线精品一区二区三区| 99视频国产精品| 91国在线观看| 色域天天综合网| 91黄色在线观看| 欧美中文字幕亚洲一区二区va在线| 日本高清不卡aⅴ免费网站| 91精品1区2区| 在线播放视频一区| 日韩欧美美女一区二区三区| 欧美成人精品1314www| 久久综合九色综合欧美就去吻| 久久亚洲私人国产精品va媚药| 精品成人一区二区三区四区| 久久视频一区二区| 国产精品色呦呦| 一区二区三区四区乱视频| 一区二区三区91| 日本一区中文字幕| 精品一区二区三区免费观看 | 欧美蜜桃一区二区三区| 欧美精品色一区二区三区| 日韩欧美精品在线视频| 国产欧美一区二区精品久导航| 亚洲天堂成人在线观看| 亚洲综合色丁香婷婷六月图片| 日韩影院免费视频| 国产在线视频一区二区三区| 91丨九色丨蝌蚪丨老版| 欧美日韩精品是欧美日韩精品| 日韩精品一区二区三区在线观看| 国产亚洲欧美色| 一区二区三区成人| 久久精品国产成人一区二区三区| 国产成人精品一区二区三区四区 | 国产精品三级视频| 午夜成人免费视频| 国产精品羞羞答答xxdd| 日本精品一区二区三区高清 | 亚洲一区二区三区在线| 另类小说图片综合网| 不卡高清视频专区| 欧美一二区视频| 亚洲视频一区二区在线| 日本在线不卡一区| 91麻豆成人久久精品二区三区| 日韩精品在线一区二区| 中文字幕视频一区| 久久成人免费网| 欧美日韩中文另类| 国产日产欧美一区| 三级在线观看一区二区| 成人网在线免费视频| 日韩欧美一二三| 亚洲一区影音先锋| av在线不卡网| 国产亚洲制服色| 日日夜夜一区二区| 色嗨嗨av一区二区三区| 亚洲国产精品黑人久久久| 免费观看久久久4p| 欧美日韩国产小视频| 亚洲天堂av一区| av一区二区三区黑人| 国产日韩综合av| 青草av.久久免费一区| 欧美午夜视频网站| 一区二区三区影院| 99精品欧美一区二区三区小说 | 6080日韩午夜伦伦午夜伦| 中文字幕中文乱码欧美一区二区| 国内精品写真在线观看| 欧美日韩国产另类一区| 亚洲欧美另类小说视频| 国产精品 日产精品 欧美精品| 日韩欧美亚洲国产另类| 奇米精品一区二区三区在线观看一| 欧美三级视频在线观看| 一区二区三区欧美日韩| 91碰在线视频| 亚洲乱码日产精品bd|