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

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

?? templates.texi

?? gcc庫的原代碼,對編程有很大幫助.
?? TEXI
字號:
@node Templates@chapter The Template Implementation@cindex templates@cindex function templates@cindex class templates@cindex parameterized types@cindex types, parameterizedThe C++ template@footnote{Class templates are also known as@dfn{parameterized types}.} facility, which effectively allows use ofvariables for types in declarations, is one of the newest features ofthe language.@sc{gnu} C++ is one of the first compilers to implement manyof the template facilities currently defined by the @sc{ansi} committee.Nevertheless, the template implementation is not yet complete.  Thischapter maps the current limitations of the @sc{gnu} C++ templateimplementation.@menu* Template limitations:: Limitations for function and class templates* Function templates::   Limitations for function templates* Class templates::      Limitations for class templates* Template debugging::   Debugging information for templates@end menu@node Template limitations@section Limitations for function and class templates@cindex template limitations@cindex template bugs@cindex bugs, templatesThese limitations apply to any use of templates (function templates orclass templates) with @sc{gnu} C++:@table @emph@item Template definitions must be visibleWhen you compile code with templates, the template definitions must comefirst (before the compiler needs to expand them), and templatedefinitions you use must be visible in the current scope.@c FIXME! Is this a defined property of templates, rather than a@c temporary limitation?@c ANSWER: It's a limitation, but it's hard to say why it's a limitation@c to someone.  We need an infinite link-cycle, in one camp, to@c accomplish things so you don't need the template definitions around.@cindex static data in template classes@cindex template classes, static data in@item Individual initializers needed for static dataTemplates for static data in template classes do not work.  @xref{Classtemplates,,Limitations for class templates}.@end table@node Function templates@section Limitations for function templates@cindex function template limitationsFunction templates are implemented for the most part.  The compiler cancorrectly determine template parameter values, and will delayinstantiation of a function that uses templates until the requisite typeinformation is available.@noindentThe following limitations remain: @itemize @bullet@cindex template vs declaration, functions@cindex declaration vs template, functions@cindex function declaration vs template@itemNarrowed specification: function declarations should not preventtemplate expansion.  When you declare a function, @sc{gnu} C++interprets the declaration as an indication that you will provide adefinition for that function.  Therefore, @sc{gnu} C++ does not use atemplate expansion if there is also an applicable declaration.  @sc{gnu}C++ only expands the template when there is no such declaration.The specification in Bjarne Stroustrup's @cite{The C++ ProgrammingLanguage, Second Edition} is narrower, and the @sc{gnu} C++implementation is now clearly incorrect.  With this new specification, adeclaration that corresponds to an instantiation of a function templateonly affects whether conversions are needed to use that version of thefunction.  It should no longer prevent expansion of the templatedefinition.For example, this code fragment must be treated differently:@smallexampletemplate <class X> X min (X& x1, X& x2) @{ @dots{} @}int min (int, int);@dots{}int i; short s;min (i, s); // @r{should call} min(int,int)            // @r{derived from template}@dots{}@end smallexample@itemThe compiler does not yet understand function signatures where types arenested within template parameters.  For example, a function like thefollowing produces a syntax error on the closing @samp{)} of thedefinition of the function @code{f}:@smallexampletemplate <class T> class A @{ public: T x; class Y @{@}; @};template <class X> int f (A<X>::Y y) @{ @dots{} @}@end smallexample@cindex @code{inline} and function templates@cindex function templates and @code{inline}@itemIf you declare an @code{inline} function using templates, the compilercan only inline the code @emph{after} the first time you usethat function with whatever particular type signature the templatewas instantiated.Removing this limitation is akin to supporting nested functiondefinitions in @sc{gnu} C++; the limitation will probably remain until themore general problem of nested functions is solved.@itemAll the @emph{method} templates (templates for member functions) for aclass must be visible to the compiler when the class template isinstantiated. @end itemize@node Class templates@section Limitations for class templates@cindex class template limitations@ignoreFIXME!!  Include a comprehensible version of this if someone can explain it.         (Queried Brendan and Raeburn w/full orig context, 26may1993---pesch)   - [RHP: I don't understand what the following fragment refers to.  If it's     the "BIG BUG" section in the original, why does it say "overriding class     declarations" here when the more detailed text refers to *function*     declarations?  Here's the fragment I don't understand:]      there are problems with user-supplied overriding class declarations (see     below). @end ignore@itemize @bullet@ignore@cindex static data, not working in templates@itemTemplates for static data in template classes do not work.Currently, you must initialize each case of such dataindividually. @c FIXME!! Brendan to see if still true.@c ANSWER: This section presumes that it's incorrect to have to@c initialize for each type you instantiate with.  It's not, it's the@c right way to do it.@end ignoreUnfortunately, individual initializations of this sort are likely to beconsidered errors eventually; since they're needed now, you might want toflag places where you use them with comments to mark the need for afuture transition.@cindex nested type results vs templates@itemMember functions in template classes may not have results of nestedtype; @sc{gnu} C++ signals a syntax error on the attempt.  The followingexample illustrates this problem with an @code{enum} type @code{alph}:@smallexampletemplate <class T> class list @{  @dots{}  enum alph @{a,b,c@};  alph bar();  @dots{}@};template <class T>list<int>::alph list<int>::bar()  // @i{Syntax error here}@{@dots{}@}@end smallexample@cindex preprocessor conditionals in templates@cindex conditionals (preprocessor) in templates@itemA parsing bug makes it difficult to use preprocessor conditionals withintemplates.  For example, in this code:@smallexampletemplate <class T>class list @{  @dots{}#ifdef SYSWRONG  T x;#endif  @dots{}@}@end smallexampleThe preprocessor output leaves sourcefile line number information (lineslike @samp{# 6 "foo.cc"} when it expands the @code{#ifdef} block.  Theselines confuse the compiler while parsing templates, giving a syntaxerror.If you cannot avoid preprocessor conditionals in templates, you cansuppress the line number information using the @samp{-P} preprocessoroption (but this will make debugging more difficult), by compiling theaffected modules like this:@smallexampleg++ -P foo.cc -o foo@end smallexample@cindex parsing errors, templates@itemParsing errors are reported when templates are first@emph{instantiated}---not on the template definition itself.  Inparticular, if you do not instantiate a template definition at all, thecompiler never reports any parsing errors that may be in the templatedefinition.@end itemize@node Template debugging@section Debugging information for templates@cindex templates and debugging information@cindex debugging information and templatesDebugging information for templates works for some object code formats,but not others.  It works for stabs@footnote{Except that insufficientdebugging information for methods of template classes is generated instabs.} (used primarily in @sc{a.out} object code, but also in the Solaris 2version of @sc{elf}), and the @sc{mips} version of @sc{coff} debuggingformat.@sc{dwarf} support is currently minimal, and requires furtherdevelopment.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区在线免费视频| 欧美日韩中文国产| 国产精品超碰97尤物18| 99精品视频一区| 一区二区三区在线视频免费| 欧美主播一区二区三区| 五月婷婷欧美视频| 日本一区二区三区电影| 91在线精品一区二区| 一区二区三区精品视频| 成人开心网精品视频| 久久影院视频免费| 成人av综合在线| 亚洲高清免费在线| 精品久久久久久综合日本欧美| 久久99蜜桃精品| 亚洲激情中文1区| 欧美mv日韩mv亚洲| 欧美三级韩国三级日本一级| 日精品一区二区三区| 国产欧美日韩在线视频| 欧美色中文字幕| 成人中文字幕电影| 免费在线观看一区二区三区| 1024国产精品| 国产精品国产三级国产三级人妇 | 亚洲猫色日本管| 这里只有精品电影| 91在线观看一区二区| 精品一区二区三区蜜桃| 日韩成人av影视| 亚洲高清一区二区三区| 亚洲欧美激情视频在线观看一区二区三区| 日韩视频在线一区二区| 欧美一级精品在线| 欧美日韩国产影片| 欧美丝袜丝交足nylons图片| 成人免费高清视频| 91在线观看视频| 午夜一区二区三区视频| 亚洲一区二区视频在线观看| 亚洲成人精品一区| 亚洲欧美日韩一区二区| 欧美艳星brazzers| 欧美性xxxxx极品少妇| 粉嫩绯色av一区二区在线观看| 久久精品一区二区三区不卡牛牛| 蜜臂av日日欢夜夜爽一区| 日韩一区欧美二区| 日本女优在线视频一区二区| 成人av网址在线| 欧美精选在线播放| 在线视频综合导航| 狠狠色丁香婷婷综合| av网站一区二区三区| 99国产精品久| 欧美韩国日本综合| 亚洲第一在线综合网站| 国产激情一区二区三区| 久久精品av麻豆的观看方式| 色综合天天狠狠| 亚洲欧美综合另类在线卡通| 丁香六月综合激情| 国产精品视频在线看| 亚洲欧美成人一区二区三区| 国产成人在线看| 国产成人自拍网| 亚洲色图视频网| 国产精品影音先锋| 国产欧美视频在线观看| 久久久久久亚洲综合影院红桃| 国产精品久久看| 亚洲福利一二三区| 色偷偷久久人人79超碰人人澡| 久久精品国产久精国产| 顶级嫩模精品视频在线看| 亚洲丝袜自拍清纯另类| av中文字幕不卡| 日韩三级视频在线看| 色综合久久66| 国产女人18毛片水真多成人如厕| 麻豆中文一区二区| 91丨porny丨国产入口| 麻豆精品一二三| 韩国女主播一区| 欧美一级黄色片| 日韩毛片一二三区| 91亚洲精品一区二区乱码| 五月综合激情日本mⅴ| 91美女福利视频| 九色|91porny| 青青草一区二区三区| 欧美第一区第二区| 青青草国产成人99久久| 久久精品国产亚洲5555| 日韩午夜精品视频| 日本成人在线网站| 欧美三日本三级三级在线播放| 亚洲另类色综合网站| 7777精品伊人久久久大香线蕉完整版| 亚洲一区二区三区四区五区黄 | 色婷婷久久99综合精品jk白丝 | 91福利在线导航| 久久国产精品第一页| 国产精品三级av在线播放| 欧美三级日韩三级| www.视频一区| 日韩电影一区二区三区四区| 欧美国产成人在线| 3atv一区二区三区| 色综合中文字幕国产 | 欧美国产在线观看| 91.成人天堂一区| 欧洲视频一区二区| 不卡视频在线观看| 激情成人午夜视频| 麻豆免费看一区二区三区| 一区二区三区不卡视频在线观看| 久久综合中文字幕| 欧美一区二区视频在线观看2022| 国产91精品在线观看| 精品影视av免费| 久久精品国产色蜜蜜麻豆| 亚洲一区二区三区四区五区中文| 亚洲国产成人私人影院tom| 欧美精品一区二区在线播放| 精品视频在线看| 欧美无砖砖区免费| 欧美精品在线一区二区三区| 欧美午夜不卡在线观看免费| 欧美体内she精高潮| 欧美在线观看一二区| 欧美最猛性xxxxx直播| 欧美日韩成人高清| 欧美一级免费大片| 精品日韩99亚洲| 国产亚洲欧美日韩日本| 中文子幕无线码一区tr| 一区二区三国产精华液| 亚洲一区影音先锋| 蜜桃精品视频在线观看| 国产suv一区二区三区88区| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 日本强好片久久久久久aaa| 国产麻豆成人精品| 91蜜桃免费观看视频| 日韩一区二区在线看片| 久久久久久久久久电影| 一区二区三区日韩精品| 久久成人av少妇免费| 成人免费三级在线| 欧美天堂一区二区三区| 亚洲精品一区二区三区影院| 中文字幕在线观看不卡视频| 日本中文在线一区| 99久久99久久综合| 精品国产网站在线观看| 亚洲激情六月丁香| 激情综合色播激情啊| 日本韩国视频一区二区| 久久一区二区三区四区| 一区二区三区欧美亚洲| 国产69精品久久久久毛片| 欧美喷潮久久久xxxxx| 亚洲男人都懂的| 成a人片亚洲日本久久| www.日韩大片| 欧美日韩三级一区| 欧美大胆一级视频| 性欧美疯狂xxxxbbbb| 91伊人久久大香线蕉| 中文字幕第一区| 精品午夜久久福利影院| 91精品国产综合久久婷婷香蕉| 一区二区三区免费| 色94色欧美sute亚洲线路二 | 欧美精品第一页| 亚洲一区二区三区不卡国产欧美| 国产精品一区二区三区网站| 精品久久久久久久久久久久包黑料 | 精品亚洲成av人在线观看| 日韩一区二区视频在线观看| 亚洲猫色日本管| 欧美性淫爽ww久久久久无| 一卡二卡欧美日韩| 欧美午夜免费电影| 一区二区不卡在线视频 午夜欧美不卡在| 91网站在线播放| 天堂影院一区二区| 国产精品888| 亚洲精品五月天| 欧美日韩国产高清一区二区| 日本成人在线网站| 亚洲精品在线观看网站| 成人的网站免费观看| 亚洲已满18点击进入久久| 欧美一区二区在线看| 国产一区不卡在线| 欧美韩国一区二区| 欧美性受xxxx|