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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? concept_checks.h

?? STL的源代碼
?? H
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* * Copyright (c) 1999 * Silicon Graphics Computer Systems, Inc. * * 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 __CONCEPT_CHECKS_H#define __CONCEPT_CHECKS_H/*  Use these macro like assertions, but they assert properties  on types (usually template arguments). In technical terms they  verify whether a type "models" a "concept".  This set of requirements and the terminology used here is derived  from the book "Generic Programming and the STL" by Matt Austern  (Addison Wesley). For further information please consult that  book. The requirements also are intended to match the ANSI/ISO C++  standard.  This file covers the basic concepts and the iterator concepts.  There are several other files that provide the requirements  for the STL containers:    container_concepts.h    sequence_concepts.h    assoc_container_concepts.h  Jeremy Siek, 1999  TO DO:    - some issues with regards to concept classification and mutability      including AssociativeContianer -> ForwardContainer      and SortedAssociativeContainer -> ReversibleContainer    - HashedAssociativeContainer    - Allocator    - Function Object Concepts  */#ifndef __STL_USE_CONCEPT_CHECKS// Some compilers lack the features that are necessary for concept checks.// On those compilers we define the concept check macros to do nothing.#define __STL_REQUIRES(__type_var, __concept) do {} while(0)#define __STL_CLASS_REQUIRES(__type_var, __concept) \  static int  __##__type_var##_##__concept#define __STL_CONVERTIBLE(__type_x, __type_y) do {} while(0)#define __STL_REQUIRES_SAME_TYPE(__type_x, __type_y) do {} while(0)#define __STL_CLASS_REQUIRES_SAME_TYPE(__type_x, __type_y) \  static int  __##__type_x##__type_y##_require_same_type#define __STL_GENERATOR_CHECK(__func, __ret) do {} while(0)#define __STL_CLASS_GENERATOR_CHECK(__func, __ret) \  static int  __##__func##__ret##_generator_check#define __STL_UNARY_FUNCTION_CHECK(__func, __ret, __arg) do {} while(0)#define __STL_CLASS_UNARY_FUNCTION_CHECK(__func, __ret, __arg) \  static int  __##__func##__ret##__arg##_unary_function_check#define __STL_BINARY_FUNCTION_CHECK(__func, __ret, __first, __second) \  do {} while(0)#define __STL_CLASS_BINARY_FUNCTION_CHECK(__func, __ret, __first, __second) \  static int  __##__func##__ret##__first##__second##_binary_function_check#define __STL_REQUIRES_BINARY_OP(__opname, __ret, __first, __second) \  do {} while(0)#define __STL_CLASS_REQUIRES_BINARY_OP(__opname, __ret, __first, __second) \  static int __##__opname##__ret##__first##__second##_require_binary_op#else /* __STL_USE_CONCEPT_CHECKS */// This macro tests whether the template argument "__type_var"// satisfies the requirements of "__concept".  Here is a list of concepts// that we know how to check://       _Allocator//       _Assignable//       _DefaultConstructible//       _EqualityComparable//       _LessThanComparable//       _TrivialIterator//       _InputIterator//       _OutputIterator//       _ForwardIterator//       _BidirectionalIterator//       _RandomAccessIterator//       _Mutable_TrivialIterator//       _Mutable_ForwardIterator//       _Mutable_BidirectionalIterator//       _Mutable_RandomAccessIterator#define __STL_REQUIRES(__type_var, __concept) \do { \  void (*__x)( __type_var ) = __concept##_concept_specification< __type_var >\    ::__concept##_requirement_violation; __x = __x; } while (0)// Use this to check whether type X is convertible to type Y#define __STL_CONVERTIBLE(__type_x, __type_y) \do { \  void (*__x)( __type_x , __type_y ) = _STL_CONVERT_ERROR< __type_x , \  __type_y >::__type_X_is_not_convertible_to_type_Y; \  __x = __x; } while (0)// Use this to test whether two template arguments are the same type#define __STL_REQUIRES_SAME_TYPE(__type_x, __type_y) \do { \  void (*__x)( __type_x , __type_y ) = _STL_SAME_TYPE_ERROR< __type_x, \    __type_y  >::__type_X_not_same_as_type_Y; \  __x = __x; } while (0)// function object checks#define __STL_GENERATOR_CHECK(__func, __ret) \do { \  __ret (*__x)( __func&) = \     _STL_GENERATOR_ERROR< \  __func, __ret>::__generator_requirement_violation; \  __x = __x; } while (0)#define __STL_UNARY_FUNCTION_CHECK(__func, __ret, __arg) \do { \  __ret (*__x)( __func&, const __arg& ) = \     _STL_UNARY_FUNCTION_ERROR< \  __func, __ret, __arg>::__unary_function_requirement_violation; \  __x = __x; } while (0)#define __STL_BINARY_FUNCTION_CHECK(__func, __ret, __first, __second) \do { \  __ret (*__x)( __func&, const __first&, const __second& ) = \     _STL_BINARY_FUNCTION_ERROR< \  __func, __ret, __first, __second>::__binary_function_requirement_violation; \  __x = __x; } while (0)#define __STL_REQUIRES_BINARY_OP(__opname, __ret, __first, __second) \    do { \  __ret (*__x)( __first&, __second& ) = _STL_BINARY##__opname##_ERROR< \    __ret, __first, __second>::__binary_operator_requirement_violation; \  __ret (*__y)( const __first&, const __second& ) = \    _STL_BINARY##__opname##_ERROR< __ret, __first, __second>:: \      __const_binary_operator_requirement_violation; \  __y = __y; __x = __x; } while (0)#ifdef __STL_NO_FUNCTION_PTR_IN_CLASS_TEMPLATE#define __STL_CLASS_REQUIRES(__type_var, __concept)#define __STL_CLASS_REQUIRES_SAME_TYPE(__type_x, __type_y)#define __STL_CLASS_GENERATOR_CHECK(__func, __ret)#define __STL_CLASS_UNARY_FUNCTION_CHECK(__func, __ret, __arg)#define __STL_CLASS_BINARY_FUNCTION_CHECK(__func, __ret, __first, __second)#define __STL_CLASS_REQUIRES_BINARY_OP(__opname, __ret, __first, __second)#else// Use this macro inside of template classes, where you would// like to place requirements on the template arguments to the class// Warning: do not pass pointers and such (e.g. T*) in as the __type_var,// since the type_var is used to construct identifiers. Instead typedef// the pointer type, then use the typedef name for the __type_var.#define __STL_CLASS_REQUIRES(__type_var, __concept) \  typedef void (* __func##__type_var##__concept)( __type_var ); \  template <__func##__type_var##__concept _Tp1> \  struct __dummy_struct_##__type_var##__concept { }; \  static __dummy_struct_##__type_var##__concept< \    __concept##_concept_specification< \      __type_var>::__concept##_requirement_violation>  \  __dummy_ptr_##__type_var##__concept#define __STL_CLASS_REQUIRES_SAME_TYPE(__type_x, __type_y) \  typedef void (* __func_##__type_x##__type_y##same_type)( __type_x, \                                                            __type_y ); \  template < __func_##__type_x##__type_y##same_type _Tp1> \  struct __dummy_struct_##__type_x##__type_y##_same_type { }; \  static __dummy_struct_##__type_x##__type_y##_same_type< \    _STL_SAME_TYPE_ERROR<__type_x, __type_y>::__type_X_not_same_as_type_Y>  \  __dummy_ptr_##__type_x##__type_y##_same_type#define __STL_CLASS_GENERATOR_CHECK(__func, __ret) \  typedef __ret (* __f_##__func##__ret##_generator)( __func& ); \  template <__f_##__func##__ret##_generator _Tp1> \  struct __dummy_struct_##__func##__ret##_generator { }; \  static __dummy_struct_##__func##__ret##_generator< \    _STL_GENERATOR_ERROR< \      __func, __ret>::__generator_requirement_violation>  \  __dummy_ptr_##__func##__ret##_generator#define __STL_CLASS_UNARY_FUNCTION_CHECK(__func, __ret, __arg) \  typedef __ret (* __f_##__func##__ret##__arg##_unary_check)( __func&, \                                                         const __arg& ); \  template <__f_##__func##__ret##__arg##_unary_check _Tp1> \  struct __dummy_struct_##__func##__ret##__arg##_unary_check { }; \  static __dummy_struct_##__func##__ret##__arg##_unary_check< \    _STL_UNARY_FUNCTION_ERROR< \      __func, __ret, __arg>::__unary_function_requirement_violation>  \  __dummy_ptr_##__func##__ret##__arg##_unary_check#define __STL_CLASS_BINARY_FUNCTION_CHECK(__func, __ret, __first, __second) \  typedef __ret (* __f_##__func##__ret##__first##__second##_binary_check)( __func&, const __first&,\                                                    const __second& ); \  template <__f_##__func##__ret##__first##__second##_binary_check _Tp1> \  struct __dummy_struct_##__func##__ret##__first##__second##_binary_check { }; \  static __dummy_struct_##__func##__ret##__first##__second##_binary_check< \    _STL_BINARY_FUNCTION_ERROR<__func, __ret, __first, __second>:: \  __binary_function_requirement_violation>  \  __dummy_ptr_##__func##__ret##__first##__second##_binary_check#define __STL_CLASS_REQUIRES_BINARY_OP(__opname, __ret, __first, __second) \  typedef __ret (* __f_##__func##__ret##__first##__second##_binary_op)(const __first&, \                                                    const __second& ); \  template <__f_##__func##__ret##__first##__second##_binary_op _Tp1> \  struct __dummy_struct_##__func##__ret##__first##__second##_binary_op { }; \  static __dummy_struct_##__func##__ret##__first##__second##_binary_op< \    _STL_BINARY##__opname##_ERROR<__ret, __first, __second>:: \  __binary_operator_requirement_violation>  \  __dummy_ptr_##__func##__ret##__first##__second##_binary_op#endif/* helper class for finding non-const version of a type. Need to have   something to assign to etc. when testing constant iterators. */template <class _Tp>struct _Mutable_trait {  typedef _Tp _Type;};template <class _Tp>struct _Mutable_trait<const _Tp> {  typedef _Tp _Type;};/* helper function for avoiding compiler warnings about unused variables */template <class _Type>void __sink_unused_warning(_Type) { }template <class _TypeX, class _TypeY>struct _STL_CONVERT_ERROR {  static void  __type_X_is_not_convertible_to_type_Y(_TypeX __x, _TypeY) {    _TypeY __y = __x;    __sink_unused_warning(__y);  }};template <class _Type> struct __check_equal { };template <class _TypeX, class _TypeY>struct _STL_SAME_TYPE_ERROR {  static void  __type_X_not_same_as_type_Y(_TypeX , _TypeY ) {     __check_equal<_TypeX> t1 = __check_equal<_TypeY>();  }};// Some Functon Object Checkstemplate <class _Func, class _Ret>struct _STL_GENERATOR_ERROR {  static _Ret __generator_requirement_violation(_Func& __f) {    return __f();  }};template <class _Func>struct _STL_GENERATOR_ERROR<_Func, void> {  static void __generator_requirement_violation(_Func& __f) {    __f();  }};template <class _Func, class _Ret, class _Arg>struct _STL_UNARY_FUNCTION_ERROR {  static _Ret  __unary_function_requirement_violation(_Func& __f,                                          const _Arg& __arg) {    return __f(__arg);  }};template <class _Func, class _Arg>struct _STL_UNARY_FUNCTION_ERROR<_Func, void, _Arg> {  static void  __unary_function_requirement_violation(_Func& __f,                                          const _Arg& __arg) {    __f(__arg);  }};template <class _Func, class _Ret, class _First, class _Second>struct _STL_BINARY_FUNCTION_ERROR {  static _Ret  __binary_function_requirement_violation(_Func& __f,                                          const _First& __first,                                           const _Second& __second) {    return __f(__first, __second);  }};template <class _Func, class _First, class _Second>struct _STL_BINARY_FUNCTION_ERROR<_Func, void, _First, _Second> {  static void  __binary_function_requirement_violation(_Func& __f,                                          const _First& __first,                                           const _Second& __second) {    __f(__first, __second);  }};#define __STL_DEFINE_BINARY_OP_CHECK(_OP, _NAME) \template <class _Ret, class _First, class _Second> \struct _STL_BINARY##_NAME##_ERROR { \  static _Ret \  __const_binary_operator_requirement_violation(const _First& __first,  \                                                const _Second& __second) { \    return __first _OP __second; \  } \  static _Ret \  __binary_operator_requirement_violation(_First& __first,  \                                          _Second& __second) { \    return __first _OP __second; \  } \}__STL_DEFINE_BINARY_OP_CHECK(==, _OP_EQUAL);__STL_DEFINE_BINARY_OP_CHECK(!=, _OP_NOT_EQUAL);__STL_DEFINE_BINARY_OP_CHECK(<, _OP_LESS_THAN);__STL_DEFINE_BINARY_OP_CHECK(<=, _OP_LESS_EQUAL);__STL_DEFINE_BINARY_OP_CHECK(>, _OP_GREATER_THAN);__STL_DEFINE_BINARY_OP_CHECK(>=, _OP_GREATER_EQUAL);__STL_DEFINE_BINARY_OP_CHECK(+, _OP_PLUS);__STL_DEFINE_BINARY_OP_CHECK(*, _OP_TIMES);__STL_DEFINE_BINARY_OP_CHECK(/, _OP_DIVIDE);__STL_DEFINE_BINARY_OP_CHECK(-, _OP_SUBTRACT);__STL_DEFINE_BINARY_OP_CHECK(%, _OP_MOD);// ...// TODO, add unary operators (prefix and postfix)/*  The presence of this class is just to trick EDG into displaying  these error messages before any other errors. Without the  classes, the errors in the functions get reported after  other class errors deep inside the library. The name  choice just makes for an eye catching error message :) */struct _STL_ERROR {  template <class _Type>  static _Type  __default_constructor_requirement_violation(_Type) {    return _Type();  }  template <class _Type>  static _Type  __assignment_operator_requirement_violation(_Type __a) {    __a = __a;    return __a;  }  template <class _Type>  static _Type  __copy_constructor_requirement_violation(_Type __a) {    _Type __c(__a);    return __c;  }  template <class _Type>  static _Type  __const_parameter_required_for_copy_constructor(_Type /* __a */,                                                   const _Type& __b) {    _Type __c(__b);    return __c;  }  template <class _Type>  static _Type  __const_parameter_required_for_assignment_operator(_Type __a,                                                      const _Type& __b) {    __a = __b;    return __a;  }  template <class _Type>  static _Type  __less_than_comparable_requirement_violation(_Type __a, _Type __b) {    if (__a < __b || __a > __b || __a <= __b || __a >= __b) return __a;    return __b;  }  template <class _Type>  static _Type  __equality_comparable_requirement_violation(_Type __a, _Type __b) {    if (__a == __b || __a != __b) return __a;    return __b;  }  template <class _Iterator>  static void

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩在线观看一区二区 | 日本成人在线网站| 欧美一级夜夜爽| 成人一级片在线观看| 一区二区在线电影| 91精品国产免费| 成人成人成人在线视频| 亚洲一区二区三区激情| 精品日韩欧美在线| 91网页版在线| 一区二区三区四区精品在线视频| 欧美一区中文字幕| 成人精品国产免费网站| 伊人婷婷欧美激情| 久久女同性恋中文字幕| 欧美性感一类影片在线播放| 国产综合成人久久大片91| 亚洲色图另类专区| 日韩一级片网站| 91麻豆国产精品久久| 久久国产精品第一页| 国产日产精品1区| 欧美日韩国产精品自在自线| 粉嫩蜜臀av国产精品网站| 五月天欧美精品| 亚洲同性同志一二三专区| 91精品国产综合久久婷婷香蕉 | 91麻豆swag| 日本vs亚洲vs韩国一区三区二区| 国产精品超碰97尤物18| 精品国产一区二区三区忘忧草 | 午夜在线成人av| 国产精品美日韩| 精品区一区二区| 欧美撒尿777hd撒尿| 成人激情小说乱人伦| 久久成人久久爱| 亚洲v精品v日韩v欧美v专区| 国产精品国产成人国产三级| 精品国产一区二区三区忘忧草| 欧美在线啊v一区| 成人污视频在线观看| 精品一区在线看| av成人免费在线| 久久电影国产免费久久电影| 日韩有码一区二区三区| 亚洲综合色自拍一区| 亚洲欧洲成人精品av97| 国产午夜亚洲精品不卡| 欧美大度的电影原声| 欧美日韩国产乱码电影| 欧美日韩亚洲丝袜制服| 在线观看亚洲a| 在线视频综合导航| 色香蕉久久蜜桃| 91啦中文在线观看| 91在线精品秘密一区二区| 成人激情午夜影院| 国产黄人亚洲片| 国产精品夜夜嗨| 国产裸体歌舞团一区二区| 久久精品国产99久久6| 亚洲一区二区五区| 亚洲成人免费影院| 天天综合日日夜夜精品| 天天射综合影视| 日韩精品久久久久久| 亚洲动漫第一页| 日日摸夜夜添夜夜添精品视频| 亚洲1区2区3区4区| 亚洲精选视频免费看| 一级精品视频在线观看宜春院 | 亚洲第一狼人社区| 亚洲高清免费视频| 日本亚洲天堂网| 琪琪一区二区三区| 韩国女主播一区| 国产91在线观看丝袜| 成人激情动漫在线观看| 欧美色窝79yyyycom| 日韩精品福利网| 国产乱国产乱300精品| 91一区二区三区在线播放| 在线免费亚洲电影| 日韩欧美成人一区| 国产日韩v精品一区二区| 日韩毛片在线免费观看| 亚洲国产一区二区视频| 久久福利视频一区二区| 国产很黄免费观看久久| 一本大道久久a久久综合婷婷| 欧美在线观看视频一区二区 | 成人网页在线观看| 在线观看日韩毛片| 精品日韩欧美在线| 最近中文字幕一区二区三区| 久久精品国产亚洲一区二区三区 | 国产激情精品久久久第一区二区| 欧美在线观看视频在线| 欧美国产精品v| 美女诱惑一区二区| 色综合久久久久久久久久久| 久久女同性恋中文字幕| 日韩电影免费在线观看网站| 91婷婷韩国欧美一区二区| 久久在线免费观看| 日韩av成人高清| 91久久精品网| 国产精品美女久久久久aⅴ| 麻豆精品在线播放| 欧美久久一二区| 亚洲精品国产第一综合99久久| 国产毛片精品视频| 欧美一区二区久久| 亚洲福利电影网| 91久久香蕉国产日韩欧美9色| 欧美高清在线精品一区| 国产精品资源站在线| 日韩色在线观看| 日韩经典中文字幕一区| 精品视频在线免费| 亚洲一区二区三区三| 91免费国产在线| 亚洲欧洲成人自拍| a级精品国产片在线观看| 久久久久97国产精华液好用吗| 看电视剧不卡顿的网站| 欧美日韩精品三区| 亚洲国产aⅴ天堂久久| 91福利小视频| 亚洲一区在线免费观看| 色8久久人人97超碰香蕉987| 亚洲色欲色欲www| 97久久精品人人澡人人爽| 中文字幕日韩精品一区| av不卡在线观看| 亚洲视频在线观看一区| 97超碰欧美中文字幕| 亚洲视频在线一区二区| 一本到不卡精品视频在线观看| 亚洲视频在线观看三级| 91成人在线精品| 亚洲一区二区三区激情| 欧美日韩专区在线| 日韩精品电影一区亚洲| 日韩欧美成人午夜| 国产精品性做久久久久久| 日本一区二区三区免费乱视频| 日韩欧美一区二区视频| 美女www一区二区| 久久日韩粉嫩一区二区三区| 国产盗摄精品一区二区三区在线 | 国产美女久久久久| 欧美国产综合一区二区| 91视频.com| 偷窥国产亚洲免费视频| 日韩一区二区三区在线观看| 极品少妇一区二区三区精品视频| 久久婷婷色综合| 99久久精品费精品国产一区二区| 亚洲精品成人在线| 777xxx欧美| 国产精品一区二区久久不卡| 日韩美女精品在线| 91精品一区二区三区久久久久久| 韩国欧美国产一区| 日韩毛片高清在线播放| 欧美四级电影网| 精品无人区卡一卡二卡三乱码免费卡| 国产日韩精品一区二区三区| 日本韩国欧美国产| 另类小说图片综合网| 中文字幕日韩av资源站| 欧美丰满高潮xxxx喷水动漫| 国产一区在线观看视频| 亚洲天堂中文字幕| 日韩午夜中文字幕| 99综合电影在线视频| 日本在线播放一区二区三区| 国产日产欧美一区| 欧美高清视频不卡网| 国产一区二区成人久久免费影院| 亚洲欧美日韩电影| 精品少妇一区二区| 色综合久久中文综合久久97| 久久99久久99精品免视看婷婷| 亚洲欧美在线视频| 日韩亚洲欧美在线观看| 91色porny蝌蚪| 国产一区中文字幕| 午夜精品免费在线| 国产精品蜜臀av| 欧美成人三级在线| 在线观看一区二区视频| 国产成人免费视频精品含羞草妖精| 亚洲午夜影视影院在线观看| 久久久久97国产精华液好用吗| 欧美日韩国产大片| 91性感美女视频| 国产高清成人在线|