- 0
- 0
- 约3.02千字
- 约 2页
- 2025-06-06 发布于四川
- 举报
G++2.91.57,cygnus\cygwin-b20\include\g++\stl_hash_fun.h完整列表
/*
*Copyright(c)1996
*SiliconGraphicsComputerSystems,Inc.
*
*Permissiontouse,copy,modify,distributeandsellthissoftware
*anditsdocumentationforanypurposeisherebygrantedwithoutfee,
*providedthattheabovecopyrightnoticeappearinallcopiesand
*thatboththatcopyrightnoticeandthispermissionnoticeappear
*insupportingdocumentation.SiliconGraphicsmakesno
*representationsaboutthesuitabilityofthissoftwareforany
*purpose.Itisprovidedasiswithoutexpressorimpliedwarranty.
*
*
*Copyright(c)1994
*Hewlett-PackardCompany
*
*Permissiontouse,copy,modify,distributeandsellthissoftware
*anditsdocumentationforanypurposeisherebygrantedwithoutfee,
*providedthattheabovecopyrightnoticeappearinallcopiesand
*thatboththatcopyrightnoticeandthispermissionnoticeappear
*insupportingdocumentation.Hewlett-PackardCompanymakesno
*representationsaboutthesuitabilityofthissoftwareforany
*purpose.Itisprovidedasiswithoutexpressorimpliedwarranty.
*
*/
/*NOTE:Thisisaninternalheaderfile,includedbyotherSTLheaders.
*Youshouldnotattempttouseitdirectly.
*/
#ifndef__SGI_STL_HASH_FUN_H
#define__SGI_STL_HASH_FUN_H
#includestddef.h
__STL_BEGIN_NAMESPACE
templateclassKeystructhash{};
inlinesize_t__stl_hash_string(constchar*s)
{
unsignedlongh=0;
for(;*s;++s)
h=5*h+*s;
returnsize_t(h);
}
__STL_TEMPLATE_NULLstructhashchar*
{
size_toperator()(constchar*s)const{return__stl_hash_string(s);}
};
__STL_TEMPLATE_NULLstructhashconstchar*
{
size_toperator()(constchar*s)const{return__stl_hash_string(s);}
};
__STL_TEMPLATE_NULLstructhashchar{
size_toperator()(charx)cons
您可能关注的文档
- 北邮社电子商务实用教程教学包案例.pdf
- moments of love心隽系列新闻稿.pdf
- 大一下英语听力as it.pdf
- 案例序曲一幕-10 horn in f 2.pdf
- 版一级数学上册校园五.pdf
- 分镜头脚本大纲建筑.pdf
- 山东省济宁市泗水县2025-2026学年七年级上学期期末道德与法治试题(试卷+解析).docx
- 山东省青岛市崂山区2025-2026学年八年级上学期期末道德与法治试题(试卷+解析).docx
- 山东省菏泽市东明县2025-2026学年九年级上学期期末道德与法治试题(试卷+解析).docx
- 山东省日照市2026届高三上学期期末数学试题(试卷+解析).docx
- 山西天一大联考2025-2026学年高二上学期期末学情监测语文试题(试卷+解析).docx
- 山西忻州部分学校2025-2026学年高一上学期2月质量检测数学试题(人教B版)(试卷+解析).docx
- 山西运城市2025-2026学年高二第一学期期末调研测试数学试题(试卷+解析).docx
- 陕西省榆林市榆阳区2025-2026学年八年级上学期期末地理试题(试卷+解析).docx
- 陕西西安市碑林区2025-2026学年度第一学期期末八年级生物试题(试卷+解析).docx
- 四川省广元市苍溪县2025-2026年八年级上学期期末道德与法治试题(试卷+解析).docx
- 江苏泰州市姜堰区2025-2026学年七年级上学期1月期末数学试题(试卷+解析).docx
- 江苏省扬州市邗江区2025-2026学年九年级上学期期末考试化学试题(试卷+解析).docx
- 江西上饶市铅山县2025-2026学年第一学期期末考试八年级数学试题(试卷+解析).docx
- 江苏扬州市高邮市2025-2026学年度第一学期期末学业质量监测试题九年级英语(试卷+解析).docx
原创力文档

文档评论(0)