- 0
- 0
- 约5.99千字
- 约 6页
- 2026-02-09 发布于北京
- 举报
.91.57,cygn+_tempbuf.h完整列表/***
G++2us\cygwin‑b20\include\g+\stl
(c)1994*惠普公司**使用、、修改、分发和销售此软件*及其文档用于任何目的均无需
支用,*前提是上述出现在所有副本中*并且上述和本出现在
支持文档中。惠普公司不*对此软件的适用性作任何表示。它按“原样”,不附带明示或
暗示的任何保证。***(c)1996,1997*硅图计算机系统公司**使用、、修改、
分发和销售此软件*及其文档用于任何目的均无需支用,*前提是上述出现在所
有副本中*并且上述和本出现在支持文档中。硅图不*对此软件的适用性作
任何表示。它按“原样”,不附带明示或暗示的任何保证。*/
/*注意:这是一个头文件,由其他STL头文件包含。*你不应尝试直接使用它。*/
#ifndef__SGI_STL_INTERNAL_TEMPBUF_H#
define__SGI_STL_INTERNAL_TEMPBUF_H
__STL_BEGIN_NAMESPACE
模板类T对T*,ptrdiff_tget_temporary_buffer(ptrdiff_t
len,T*){if(lenptrdiff_t(INT_MAX/sizeof(T)))len=
INT_MAX/sizeof(T);while(len0){T*tmp=(T*)
malloc((size_t)len*sizeof(T));if(tmp!=0)return对T*,
ptrdiff_t(tmp,len);len/=2;}
G++2.91.57,cygnus\cygwin-b20\include\g++\stl_tempbuf.h完整列表
/*
*
*Copyright(c)1994
*Hewlett-PackardCompany
*
*Permissiontouse,copy,modify,distributeandsellthissoftware
*anditsdocumentationforanypurposeisherebygrantedwithoutfee,
*providedthattheabovecopyrightnoticeappearinallcopiesand
*thatboththatcopyrightnoticeandthispermissionnoticeappear
*insupportingdocumentation.Hewlett-PackardCompanymakesno
*representationsaboutthesuitabilityofthissoftwareforany
*purpose.Itisprovidedasiswithoutexpressorimpliedwarranty.
*
*
*Copyright(c)1996,1997
*SiliconGraphicsComputerSystems,Inc.
*
*Permissiontouse,copy,modify,distributeandsellthissoftware
*anditsdocumentationforanypurposeisherebygrantedwithoutfee,
*providedthattheabovecopyrightnoticeappearinallcopiesand
*thatboththatcopyrightnoticeandthispermissionnoticeappear
*insupportingdocume
原创力文档

文档评论(0)