侯捷stl源码剖析注释之25 sgi-stl-queue.pdf

侯捷stl源码剖析注释之25 sgi-stl-queue.pdf

ID:51500387

大小:916.35 KB

页数:4页

时间:2020-03-25

侯捷stl源码剖析注释之25 sgi-stl-queue.pdf_第1页
侯捷stl源码剖析注释之25 sgi-stl-queue.pdf_第2页
侯捷stl源码剖析注释之25 sgi-stl-queue.pdf_第3页
侯捷stl源码剖析注释之25 sgi-stl-queue.pdf_第4页
资源描述:

《侯捷stl源码剖析注释之25 sgi-stl-queue.pdf》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、完整列表1G++2.91.57,cygnuscygwin-b20includeg++stl_queue.h完整列表/***Copyright(c)1994*Hewlett-PackardCompany**Permissiontouse,copy,modify,distributeandsellthissoftware*anditsdocumentationforanypurposeisherebygrantedwithoutfee,*providedthattheabovecopyrightnoticeappearinallcopiesand*that

2、boththatcopyrightnoticeandthispermissionnoticeappear*insupportingdocumentation.Hewlett-PackardCompanymakesno*representationsaboutthesuitabilityofthissoftwareforany*purpose.Itisprovided"asis"withoutexpressorimpliedwarranty.***Copyright(c)1996,1997*SiliconGraphicsComputerSystems,Inc.**Permissionto

3、use,copy,modify,distributeandsellthissoftware*anditsdocumentationforanypurposeisherebygrantedwithoutfee,*providedthattheabovecopyrightnoticeappearinallcopiesand*thatboththatcopyrightnoticeandthispermissionnoticeappear*insupportingdocumentation.SiliconGraphicsmakesno*representationsaboutthesuitab

4、ilityofthissoftwareforany*purpose.Itisprovided"asis"withoutexpressorimpliedwarranty.*//*NOTE:Thisisaninternalheaderfile,includedbyotherSTLheaders.*Youshouldnotattempttouseitdirectly.*/#ifndef__SGI_STL_INTERNAL_QUEUE_H#define__SGI_STL_INTERNAL_QUEUE_H__STL_BEGIN_NAMESPACE#ifndef__STL_LIMITED_DEFA

5、ULT_TEMPLATEStemplate>#elsetemplate#endifclassqueue{friendbooloperator==__STL_NULL_TMPL_ARGS(constqueue&x,constqueue&y);friendbooloperator<__STL_NULL_TMPL_ARGS(constqueue&x,constqueue&y);public:typedeftypenameSequence::value_typevalue_type;type

6、deftypenameSequence::size_typesize_type;typedeftypenameSequence::referencereference;typedeftypenameSequence::const_referenceconst_reference;TheAnnotatedSTLSources2完整列表protected:Sequencec;//底層容器public://以下完全利用Sequencec的操作,完成queue的操作。boolempty()const{returnc.empty();}size_typesize()co

7、nst{returnc.size();}referencefront(){returnc.front();}const_referencefront()const{returnc.front();}referenceback(){returnc.back();}const_referenceback()const{returnc.back();}//deque是兩頭可進出,queue是末端進,前端出(所以先進者先出)。voidpush(cons

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。