作者:empty 页数:1618 出版社:empty |
Scope[intro.scopeThis documents pee if is requirements for imple tentations of the C++programming languag c.The fiat suchrequire mn ent is that they implement the lungu age, so this doru mental so defines C++, Other requirementsand relaxations of the first requirement appear at various places within this document.zC++is a general purpose programming language based on the C programming language as de seri bed inISO/IEC9899:2011Progrumminglangunges-C(hereinufterreferredtoastheCstardard).Inadditiontothe facilities provided by C, C++provides additional datatypes, classes, templates, exo ep tions, namespaces,operator overloading, function name overloading, references, free store management operators, and additionallibrary facilties.
Contents
Foreword
1 Scope
2 Normative references
3 Terms and definitions
4 General principles
5 Lexical conventions
6 Basic concepts
Implementation compliance.
Structure of this document.
Syntax notation.
The C++mean or yiu ode i.
The C++object model.
Program execution.
Lvalue-to-rval ne conversion.
Array-to-pointer convera ion.
Function-to-pointer conversion, .
Temporary materialization conversion
Qualification conversions.
Integral promotions.
Floating-point promotion.
Integral conversions, .
Floating-point conversions
Pointer conversions.
Pointer to me tuber conversions
Unary express lons.
Exp ict type conversion(cast hot ation) .
Pointer-to-member operators.
Multiplicative operators.
Additive operators.
Asiguneutandcompouudissi gument operators
Selection statements
Iteration statements
Jump statements.
Multithreaded ex icu tons and data races
Acknowledgments.
Separate translation.
Phases of translation.i
Character sets.
Prep roe casing tokens
Alternative tokens
Tokens.
Comments i.
Hca der nam nes.
Preprocessing numbers.
Identiti crs.
Keywords.
Operators and punct u ators
Literals.
Declara tious and definitions.
.2One-definition rule.
.Scope.Name lookup.
.Program and i kage
6Start and termination
6.7Storage duration
6.8Object lifetime,
6.9
Types Q:
6.10Lvalues and r values.
6.11Align mett.
Contents
ISO/IEC14882:2017(E)
7 Standard conversions
aaoFloating-integral conversions,
7.13Function pointer conversions.
7.14Boolean conversions
715Integerconwrsionrank.
8 Expressions
8.1Primary expressions
82Postfix expressions.,
8.8Shift operators.
8.9Relational operators
8.10Equality operators.
8.11Bitwise AND operator.
8.12Bitwise exclusive OR operator
8.13Bitwise in elusive OR operator
8.14Logical AND operator.
8.15Logical OR operator.
5.16Conditional operator.
8.17Thro wigan exception.
8.18
8.19Comma operator.
8.20Constant expressions
9 Statements
9.1Lab cl el statement,
9.2Expression statement.
.Compound statement or block
.7Declaration statementAmbiguity resolution.
12 Classes
Enumeration declarations.
Names pwc es.
The a en declaration
Linkage speci ications.
Attributes.
Typename n.
Am bt gui tyres out ion.
Meaning of declarators.
Fun e tion de in i ions.
Strc tured biding declarations
Initializers.
12.1Class names
12.2Class members
12.3Unions.
12.4Loral cass deel a rations
13 Derived classes
13.1Multiple base classes
13.2Me in berna in e lookup
13.3Virtual fun e tions.
13.4Abstract cla sees.
14Memnber accesscontrol
14.1Acc css spcc if icra.
Acos sibility of base clussesandbuseclssmnemb
Friends.
Protected member a cows.
A cccs to virtual functio us.
Multiple acces.
Nested classes.
15.1Constr ie tot.
15.2Tean porary object:
15.3Conversions.
15.4Destructors.
15.5Free store.
15.6Initialization.
15.7Cost rie ion and destruction
15.8Copying and moving class objects
16 Overloading
16.1Overload able declarations.
16.2Declaration matching-:.
16.3 Overload resolution.
Contents
ISO/IEC14882:2017(E)
16.4Address of overloaded function.
16.5Overloaded opera tons.-.
16.6Built-in operators.
17 Templates
17.1Template parameters.
17.2Names of template special zations
17.5
17.6Name ree olution.
17.7Tean plate ist anti tion and speci liz at in,
17.8Function template specializations.
17.9
18 Exception handling
18.1 Throwing an exception.
19 Preprocessing directives
19.1 Conditional incl as ion.
CISO/IEC 2017-All rights reserved
O ISO/IEC 2017-All rights re see ved
Template arguments.
Type equivalence.
Template declarations.
Deduction guides.
Constr net or sand des trne tors
Handling an exception.
Exception specifications.
Special fun e tions-
19.2Source fie in el usion.
19.3Macro replacement.
19.4Line control.
19.5Error directive
19.6Pragma directive
19.7Null directive.
19.8Pre le fined macron ators
19.9Pragma operator.
20 Library introduction
20.1General.
20.2The Cst and aril brary
20.3Definitions.
20.4Method of dc scription(In format iv
20.5 Library-wide requirements,
21 Language support library
21.1General.
21.2Common dei mi tons
21.3Imple me ut at iou properties
Integer types
21.5
ro.m.-.
Start and tenn iation
319
Dynamic memory management
Type identification.
2.Exception handling.
219Initializer lists.
21.10 Other runtime support.
22 Diagnostics library
22.1 General.
22.2Exception classes
22.3Anser tions.
22.4Error numbers
22.5
23Generalutllitles library
Compile-time integer sequences.
Pains.
Tuples.-
Optional objects
Variants.
Storage for any type
Bit sets.
23.10 Memory.
23.11 Smart pointers.
23.12 Memory resources.
23.13 Class template a coped_allocator_adaptor
23.14 Function objects.
23.15Metaprogramntng and type trait,
23.16 Compile-time rational arithmetic
23.17 Time utilities.
2318 Classtype_index
23.19 Execution policies.
24 Strings library
24.1General, .
24.2Character traits.
24.3String clases.
24.4Sting view clus ses.
215Null terminated sequence ut lites.
25 Localization library
25.1 General.
25.2Header locale>synopsis
25.3Locn les.
25.4Standard locale categories
25.5C library locales:
26 Containers library
26.1Gencral.
26.2Container requirements.
26.3Seq uc ncc containers
26.4Associative containers,
265Un or dened assoc at ve containers
26.6Container adaptors.
Contents
ISO/IEC14882:2017(E)
27 Iterators library
27.1General.
27.2Iterator require in ents
27.3Hender c iterator>synops i
27.4Iterator primitives
27.5Iter abor adaptors
27.6Stream n iterators.
277Range acc ehh
27.8Container access
28 Algorithms library
28.1General.-.:
28.2Header c algorithm>synopsis.
28.3Algorithms requirements.
28.4Parallel algorithms.
28.5Non-moli ying sequence operations.
28.6Mutating scqucnccopc rations.
28.7Sorting and related operations.
28.8C library algorithms.
29 Numerics library
29.1General.
292Dei nitions.
2.Numer ctype require m nents
29.4The fi oating-point environ t bent
29.5Complex numbers.
290Rand osu number ge ucr at in.
29.7Numeric arrays.
29.8Gen cr alized numeric operations
29.9Mathematical functions for foa tig-point types
30 Input/output library
30.1General.
30.2lo streams requirements.
30.3Forward declarations.
304Standard ios tren mob jeees
30.5Iostreams base classes.
30.6Stream buffers.
30.7For nat ting and maxi pula tors
30.8String-baa ed stream.
30.9 File-based stre a ins,
30.10 Filesystems.
30.11C library iles.
31 Regular expressions library
31.1Gencral.:
31.2Defintions.
31.3Requirements.
31.4Header regex>synopsis.
31.5Namespace std::regex_constants.
31.6Class regex_error.
Class template regex_traits,
Lexie al conventions,
Basic concepts-.
Expressions.
State me uts.
Declarations.
Declarator H+
Classes.
31.8Classtein plate basic_regex.
31.9 Class template aub_match.
31.10Clnsstern plate match_results
31.11 Regularexpression algorithms.
31.12 Regularexpression iterators.
31.13MoifxlECMASerpt regularexpression grammar
32 Atomic operations library
32.1 General.
32.2Header atonic>sy bops is.
32.3Type al in ses.
32.4Order and consistency
32.5Lock-free property:.
32.6Class template atomic
32.7Non-mh ember function H.
32.8Flag type and operations
32.9Fences.
33 Thread support library
33.1 General
33.2Requiem ents
33.3Threads.
33.4Mutual exclusion
33.5Condition variables
33.6Futures,
A Grammar summary
A.1Keywords.
A.9Derived classes.
A.10Speilinemherfumcins
A. 11 Overloading.
A.12Tero plates.
A. 13 Exception handing.
A. 14 Preprocessing directives
B Implementation quantities
c Compatibility
C.1C++and ISOC.
C.2C++and ISOC++ 2003
C.5C standard library
Contents
ISO/IEC14882:2017(E)
D Compatibility features
D.1Re declaration of static const erp r data members
D.2Implicit do clara tion of copy functions., .
D.3Deprecated exception specifications, ,
D.4C++standard library headers.
BC standard library headers,
D.6char*stre ans.
D.7uncaught_exception.
D.8Ol adaptable fuct in bind
D.9The default allocator.
D.10Raw storage iterator
D.11Tesuporary buffers.
D. 12 Deprecated type traits
D. 13 Deprecated iterator primi ties.
D.14Depree