ISO IEC TS 19217-2015 Information technology - Programming languages - C++ Extensions for concepts《信息技术 编程语言 C++概念的扩展》.pdf
《ISO IEC TS 19217-2015 Information technology - Programming languages - C++ Extensions for concepts《信息技术 编程语言 C++概念的扩展》.pdf》由会员分享,可在线阅读,更多相关《ISO IEC TS 19217-2015 Information technology - Programming languages - C++ Extensions for concepts《信息技术 编程语言 C++概念的扩展》.pdf(60页珍藏版)》请在麦多课文档分享上搜索。
1、Information technology Programming languages C+ Extensions for concepts Technologie de linformation Langages de programmation Extensions C+ pour les concepts warning ISO/IEC TS 19217 First edition 2015-11-1 5 Reference number ISO/IEC TS 19217:2015(E) TECHNICAL SPECIFICATION ISO/IEC 2015 ii ISO/IEC 2
2、015 All rights reserved COPYRIGHT PROTECTED DOCUMENT ISO/IEC 2015, Published in Switzerland All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized otherwise in any form or by any means, electronic or mechanical, including photocopying, or posting o
3、n the internet or an intranet, without prior written permission. Permission can be requested from either ISO at the address below or ISOs member body in the country of the requester. ISO copyright office Ch. de Blandonnet 8 CP 401 CH-1214 Vernier, Geneva, Switzerland Tel. +41 22 749 01 11 Fax +41 22
4、 749 09 47 copyrightiso.org www.iso.org ISO/IEC TS 19217:2015(E)c ISO/IEC N4549 Contents iii ivv Contents List of Tables Foreword 1 General 1 1.1 Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 Normative references . . . . . . . . . . . . . .
5、 . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.3 Terms and denitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.4 Implementation compliance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.5 Feature-testing recommendations . . .
6、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.6 Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 Lexical conventions 3 2.1 Keywords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 5 Expr
7、essions 4 5.1 Primary expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 7 Declarations 11 7.1 Speciers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 8 Declarators 21 8.3 Meaning of declarators . . . . . . . . .
8、. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 10 Derived classes 25 10.3 Virtual functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 13 Overloading 26 13.1 Overloadable declarations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9、. . . . . . 26 13.3 Overload resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 13.4 Address of overloaded function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 14 Templates 28 14.1 Template parameters . . . . . . . . . . . . . . . .
10、 . . . . . . . . . . . . . . . . . . . . . . . 28 14.2 Introduction of template parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 14.3 Names of template specializations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 14.4 Template arguments . . . . . . . .
11、. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 14.6 Template declarations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 14.7 Name resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 14.8 Template instant
12、iation and specialization . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 14.9 Function template specializations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 14.10 Template constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 A C
13、ompatibility 53 A.1 C + extensions for Concepts and ISO C + 2014 . . . . . . . . . . . . . . . . . . . . . . . 53 Contents iii ISO/IEC 2015 All rights reserved ISO/IEC TS 19217:2015 (E)c ISO/IEC N4549 List of Tables A Feature-test macro(s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
14、. . . . . . . . . . . 2 10 simple-type-speciers and the types they specify . . . . . . . . . . . . . . . . . . . . . . . . . . 12 B Value of folding empty sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 List of Tables iv ISO/IEC TS 19217:2015 (E) ISO/IEC 2015 All r
15、ights reserved ISO/IEC N4549 ISO/IEC 2015 All rights reserved Foreword ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system for worldwide standardization. National bodies that are members of ISO or IEC participat
16、e in the development of International Standards through technical committees established by the respective organization to deal with particular fields of technical activity. ISO and IEC technical committees collaborate in fields of mutual interest. Other international organizations, governmental and
17、 non-governmental, in liaison with ISO and IEC, also take part in the work. In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1. The procedures used to develop this document and those intended for its further maintenance are described in th
18、e ISO/IEC Directives, Part 1. In particular the different approval criteria needed for the different types of document should be noted. This document was drafted in accordance with the editorial rules of the ISO/IEC Directives, Part 2 (see www.iso.org/directives). Attention is drawn to the possibili
19、ty that some of the elements of this document may be the subject of patent rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights. Details of any patent rights identified during the development of the document will be in the Introduction and/or on the ISO lis
20、t of patent declarations received (see www.iso.org/patents). Any trade name used in this document is information given for the convenience of users and does not constitute an endorsement. For an explanation on the meaning of ISO specific terms and expressions related to conformity assessment, as wel
21、l as information about ISOs adherence to the WTO principles in the Technical Barriers to Trade (TBT) see the following URL: Foreword - Supplementary information The committee responsible for this document is ISO/IEC JTC 1, Information technology, SC 22, Programming languages, their environments and
22、system software interfaces. ISO/IEC TS 19217:2015 (E)c ISO/IEC N4549 1 General intro 1.1 Scope intro.scope 1 This Technical Specication describes extensions to the C + Programming Language (1.2) that enable the specication and checking of constraints on template arguments, and the ability to overloa
23、d functions and specialize class templates based on those constraints. These extensions include new syntactic forms and modications to existing language semantics. 2 The International Standard, ISO/IEC 14882, provides important context and specication for this Technical Specication. This document is
24、 written as a set of changes against that specication. Instructions to modify or add paragraphs are written as explicit instructions. Modications made directly to existing text from the International Standard use underlining to represent added text and strikethrough to represent deleted text. 3 WG21
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ISOIECTS192172015INFORMATIONTECHNOLOGYPROGRAMMINGLANGUAGESCEXTENSIONSFORCONCEPTS 信息技术 编程 语言 概念 扩展 PDF

链接地址:http://www.mydoc123.com/p-1257458.html