索引

知识有两种。

我们自己知道一个问题,

或者我们知道在哪里

我们能够找到关于这个问题的资料。

—— 塞缪尔·约翰逊

Token

  • !=

    • container 147

    • not-equal operator 6

  • " string literal 3

  • $, regex 117

  • %

    • modulus operator 6

    • remainder operator 6

  • %=, operator 7

  • &

    • address-of operator 11

    • reference to 12

  • &&, rvalue reference 71

  • (, regex 117

  • (), call operator 85

  • (?, pattern 120

  • ), regex 117

  • *

    • contents-of operator 11

    • multiply operator 6

    • pointer to 11

    • regex 117

  • *=, scaling operator 7

  • *? lazy 118

  • +

    • plus operator 6

    • regex 117

    • string concatenation 111

  • ++, increment operator 7

  • +=

    • operator 7

    • string append 112

  • +? lazy 118

  • -, minus operator 6

  • -- decrement operator 7

  • ., regex 117

  • /, divide operator 6

  • // comment 2

  • /=, scaling operator 7

  • : public 55

  • << 75

    • output operator 3

  • <=

    • container 147

    • less-than-or-equal operator 6

  • <

    • container 147

    • less-than operator 6

  • =

    • assignment 16

    • auto 8

    • container 147

    • initializer 7

    • initializer narrowing 8

    • string assignment 112

  • ==

    • = and 7

    • container 147

    • equal operator 6

    • string 112

  • >

    • container 147

    • greator-than operator 6

  • >=

    • container 147

    • greator-than-or-equal operator 6

  • >> 75

    • template arguments 215

  • ?,regex 117

  • ?? lazy 118

  • [,regex 117

  • []

  • \,backslash 3

  • ],regex 117

  • ^,regex 117

  • {,regex 117

  • {}

    • grouping 2

    • initializer 8

  • {}? lazy 118

  • |,regex 117

  • },regex 117

  • ~,destructor 51

  • 0

A

  • abs() 188

  • abstract

  • accumulate() 189

  • acquisition RAII, resource 164

  • adaptor,lambda as 180

  • address,memory 16

  • address-of operator & 11

  • adjacent_difference() 189

  • aims,C++11 213

  • algorithm 149

  • <algorithm> 109, 156

  • alias

  • alignas 215

  • alignof 215

  • allocation 51

  • allocator new, container 178

  • almost container 170

  • alnum, regex 119

  • alpha, regex 119

  • [[:alpha:]], letter 119

  • ANSI C++ 212

  • any 177

  • append +=,string 112

  • argument

    • constrained 81

    • constrained template 82

    • default function 42

    • default template 98

    • function 41

    • passing, function 66

    • type 82

    • value 82

  • arithmetic

    • conversions,usual 7

    • operator 6

    • vector 192

  • ARM 212

  • array

  • array 171

  • <array> 109

  • asin() 188

  • assembler 210

  • assert() 40

  • assertion static_assert 40

  • Assignable,concept 158

  • assignment

  • associative array - see map

  • async() launch 204

  • at() 141

  • atan() 188

  • atan2() 188

  • AT&T Bell Laboratories 212

  • auto= 8

  • auto_ptr,deprecated 218

B

  • back_inser ter() 150

  • backslash \ 3

  • bad_variant_access 176

  • base and derived class 55

  • basic_string 114

  • BCPL 219

  • begin() 75, 143, 147, 150

  • beginner, book for 1

  • Bell Laboratories, AT&T 212

  • beta() 188

  • bibliography 222

  • BidirectionalIterator,concept 159

  • BidirectionalRange,concept 160

  • binary search 156

  • binding, structured 45

  • bit-field,bitset and 172

  • bitset 172

  • blank, regex 119

  • block

    • as function body, try 141

    • try 36

  • body,function 2

  • book for beginner 1

  • bool 5

  • Boolean,concept 158

  • BoundedRange,concept 160

  • break 15

C

  • C 209

    • and C++ compatibility 218

    • Classic 219

    • difference from 218

    • K&R 219

    • void * assignment, difference from 221

    • with Classes 208

    • with Classes language features 210

    • with Classes standard library 211

  • C++

    • ANSI 212

    • compatibility,Cand 218

    • Core Guidelines 214

    • core language 2

    • history 207

    • ISO 212

    • meaning 209

    • modern 214

    • pronunciation 209

    • standard, ISO 2

    • standard library 2

    • standardization 212

    • timeline 208

  • C++03 212

  • C++0x, C++11 209, 212

  • C++11

  • C++14 213

    • language features 216

    • library components 217

  • C++17 1, 213

    • language features 216

    • library components 217

  • C++20 1, 157, 213

    • concepts 94

    • contracts 40

    • modules 32

  • C++98 212

    • standard library 211

  • C11 218

  • C89 and C99 218

  • C99, C89 and 218

  • call operator () 85

  • callback 181

  • capacity() 139, 147

  • capture list 87

  • carries_dependency 215

  • cast 53

  • catch

    • clause 36

    • every exception 141

  • catch(...) 141

  • ceil() 188

  • char 5

  • character sets, multiple 114

  • check

    • compile-time 40

    • run-time 40

  • checking, cost of range 142

  • chrono, namespace 179

  • <chrono> 109, 179, 200

  • class 48

    • abstract 54

    • base and derived 55

    • concrete 48

    • hierarchy 57

    • scope 9

    • template 79

  • Classic C 219

  • C-library header 100

  • clock timing 200

  • <cmath> 109, 188

  • cntrl, regex 119

  • code complexity, function and 4

  • comment, // 2

  • Common,concept 158

  • CommonReference,concept 158

  • common_type_t 158

  • communication, task 202

  • comparison 74

  • compatibility, C and C++ 218

  • compilation

    • model, template 104

    • separate 30

  • compiler 2

  • compile-time

    • check 40

    • computation 181

    • evaluation 10

  • complete encapsulation 66

  • complex 49, 190

  • <complex> 109, 188, 190

  • complexity, function and code 4

  • components

    • C++11 library 216

    • C++14 library 217

    • C++17 library 217

  • computation, compile-time 181

  • concatenation +,string 111

  • concept 81, 94

    • Assignable 158

    • based overloading 95

    • BidirectionalIterator 159

    • BidirectionalRange 160

    • Boolean 158

    • BoundedRange 160

    • Common 158

    • CommonReference 158

    • Constructible 158

    • ConvertibleTo 158

    • Copyable 158

    • CopyConstructible 158

    • DefaultConstructible 158

    • DerivedFrom 158

    • Destructible 158

    • EqualityComparable 158

    • ForwardIterator 159

    • ForwardRange 160

    • InputIterator 159

    • InputRange 160

    • Integral 158

    • Invocable 159

    • InvocableRegular 159

    • Iterator 159

    • Mergeable 159

    • Movable 158

    • MoveConstructible 158

    • OutputIterator 159

    • OutputRange 160

    • Permutable 159

    • Predicate 159

    • RandomAccessIterator 159

    • RandomAccessRange 160

    • Range 157

    • Range 160

    • Regular 158

    • Relation 159

    • Same 158

    • Semiregular 158

    • Sentinel 159

    • SignedIntegral 158

    • SizedRange 160

    • SizedSentinel 159

    • Sortable 159

    • StrictTotallyOrdered 158

    • StrictWeakOrder 159

    • support 94

    • Swappable 158

    • SwappableWith 158

    • UnsignedIntegral 158

    • use 94

    • View 160

    • WeaklyEqualityComparable 158

  • concepts

    • C++20 94

    • definition of 97

    • in <concepts> 158

    • in <iterator> 158

    • in <ranges> 158

  • <concepts>, concepts in 158

  • concrete

  • concurrency 195

  • condition, declaration in 61

  • condition_variable 201

  • <condition_variable> 201

  • const

    • immutability 9

    • member function 50 constant expression 10const_cast 53constexpr

    • function 10

    • immutability 9

  • const_iterator 154

  • constrained

    • argument 81

    • template 82

    • template argument 82

  • Constructible,concept 158

  • constructor

  • container 51, 79, 137

  • contents-of operator * 11

  • contract 40

  • contracts, C++20 40

  • conversion 67

    • explicit type 53

    • narrowing 8

  • conversions, usual arithmetic 7

  • ConvertibleTo,concept 158

  • copy 68

  • copy() 156

  • Copyable,concept 158

  • CopyConstructible,concept 158

  • copy_if() 156

  • Core Guidelines, C++ 214

  • core language, C++ 2

  • coroutine 211

  • cos() 188

  • cosh() 188

  • cost

    • of copy 70

    • of range checking 142

  • count() 156

  • count_if() 155, 156

  • cout,output 3

  • <cstdlib> 110

  • C-style

    • error handling 188

    • string 13

D

  • \D, regex 119

  • \d, regex 119

  • d, regex 119

  • data race 196

  • data(), array 171

  • D&E 208

  • deadlock 199

  • deallocation 51

  • debugging template 100

  • declaration 5

    • function 4

    • in condition 61

    • interface 29

  • -declaration, using 34

  • declarator operator 12

  • decltype 215

  • decrement operator -- 7

  • deduction

  • default

    • constructor 50

    • function argument 42

    • member initializer 68

    • operations 66

    • template argument 98

  • =default 66

  • DefaultConstructible,concept 158

  • definition

    • implementation 30

    • of concepts 97

  • delegating constructor 215

  • =delete 67

  • delete

  • deprecated

  • deque 146

  • derived class, base and 55

  • DerivedFrom,concept 158

  • Destructible, concept 158

  • destructor 51, 66

  • dictionary – see map

  • difference

    • from C 218

    • from C void * assignment 221

  • digit, [[:digit:]] 119

  • digit, regex 119

  • [[:digit:]] digit 119

  • -directive, using 35

  • dispatch, tag 181

  • distribution,random 191

  • divide operator / 6

  • domain error 188

  • double 5

  • duck typing 104

  • duration 179

  • duration_cast 179

  • dynamic store 51

  • dynamic_cast

    • is instance of 62

    • is kind of 62

E

  • EDOM 188

  • element requirements

  • elision, copy 66

  • emplace_back() 147

  • empty() 147

  • enable_if 184

  • encapsulation, complete 66

  • end() 75, 143, 147, 150

  • engine, random 191

  • enum, bitset and 172

  • equal operator == 6

  • equality preserving 159

  • EqualityComparable,concept 158

  • equal_range() 156, 173

  • ERANGE 188

  • erase() 143, 147

  • errno 188

  • error

  • error-code, exception vs 38

  • essential operations 66

  • evaluation

    • compile-time 10

    • order of 7

  • example

  • exception 35

    • and main() 141

    • catch every 141

    • specification, removed 218

    • vs error-code 38

  • exclusive_scan() 189

  • execution policy 161

  • explicit type conversion 53

  • explicit constructor 67

  • exponential_distribution 191

  • export removed 218

  • expr() 188

  • expression

    • constant 10

    • lambda 87

    • requires] 96

  • extern template 215

F

  • fabs() 188

  • facilities, standard library 108

  • fail_fast 170

  • feature, deprecated 218

  • features

    • C with Classes language 210

    • C++11 language 215

    • C++14 language 216

    • C++17 language 216

  • file, header 31

  • final 216

  • find() 150, 156

  • find_all() example 151

  • find_if() 155, 156

  • first,pair member 173

  • floor() 188

  • fmod() 188

  • for

    • statement 11

    • statement, range 11

  • forward() 167

  • forwarding, perfect 168

  • ForwardIterator, concept 159

  • forward_list 146

    • singly-linked list 143

  • <forward_list> 109

  • ForwardRange, concept 160

  • free store 51

  • frexp() 188

  • <fstream> 109

  • __func__ 215

  • function 2

    • and code complexity 4

    • argument 41

    • argument, default 42

    • argument passing 66

    • body 2

    • body, try block as 141

    • const member 50

    • constexpr 10

    • declaration 4

    • implementation of virtual 56

    • mathematical 188

    • object 85

    • overloading 4

    • return value 41

    • template 84

    • type 181

    • value return 66

  • function 180

    • and nullptr 180

  • fundamental type 5

  • future

    • and promise 202

    • member get() 202

  • <future> 109, 202

G

  • garbagecollection 73

  • generic programming 93, 210

  • get<>()

  • get(), future member 202

  • graph,regex 119

  • greater-than operator > 6

  • greater-than-or-equal operator >= 6

  • greedy match 118, 121

  • grouping, {} 2

  • gsl

  • Guidelines, C++ Core 214

H

half-open sequence 156 handle 52 resource 69, 165 hardware, mapping to 16 hash table 144hash<>, unordered_map 76 header C-library 110 file 31 standard library 109 heap 51Hello,World! example 2 hierarchyclass 57 navigation 61 history, C++ 207 HOPL 208

I

  • if statement 14

  • immutability

    • const 9

    • constexpr 9

  • implementation

    • definition 30

    • inheritance 60

    • iterator 153

    • of virtual function 56

    • string 113

  • in-class member initialization 215

  • #include 31

  • inclusive_scan() 189

  • increment operator ++ 7

  • index,get<>() by 174

  • inheritance 55

    • implementation 60

    • interface 60

    • multiple 211

  • inheriting constructor 216

  • initialization

    • and assignment 18

    • in-class member 215

  • initialize 52

  • initializer

    • = 7

    • {} 8

    • default member 68

    • narrowing, = 8

  • initializer-list constructor 52

  • initializer_list 52

  • inline 49

  • inlining 49

  • inner_product() 189

  • InputIterator,concept 159

  • InputRange,concept 160

  • insert() 143, 147

  • instantiation 81

  • instruction, machine 16

  • int 5

    • output bits of 172

  • Integral,concept 158

  • interface

    • declaration 29

    • inheritance 60

  • invariant 37

    • and constructor 37

  • Invocable, concept 159

  • InvocableRegular, concept 159

  • I/O, iterator and 154

  • <ios> 109

  • <iostream> 3, 109

  • iota() 189

  • is

    • instance of, dynamic_cast 62

    • kind of, dynamic_cast 62

  • ISO

    • C++ 212

    • C++ standard 2

  • ISO-14882 212

  • istream_iterator 154

  • iterator 75, 150

  • Iterator, concept 159

  • iterator 143, 154

  • <iterator> 182

    • concepts in 158

  • iterator_category 182

  • iterator_traits 181, 182

  • iterator_type 182

J

  • join(), thread 196

K

L

  • \L, regex 119

  • \l, regex 119

  • lambda

    • as adaptor 180

    • expression 87

  • language

    • and library 107

    • features, C with Classes 210

    • features, C++11 215

    • features, C++14 216

    • features, C++17 216

  • launch, async() 204

  • lazy

  • ldexp() 188

  • leak, resource 62, 72, 164

  • less-than operator < 6

  • less-than-or-equal operator <= 6

  • letter, [[:alpha:]] 119

  • library

    • algorithm, standard 156

    • C with Classes standard 211

    • C++98 standard 211

    • components, C++11 216

    • components, C++14 217

    • components, C++17 217

    • container, standard 146

    • facilities, standard 108

    • language and 107

    • non-standard 107

    • standard 107

  • lifetime, scope and 9

  • lifting algorithm 100

  • <limits> 181, 193

  • linker 2

  • list

    • capture 87

    • forward_list, singly-linked 143

  • list 142, 146

  • literal

  • literals

    • string_literals 113

    • string_view_literals 115

  • local scope 9

  • lock, reader-writer 200

  • log() 188

  • log10() 188

  • long long 215

  • lower, regex 119

M

  • machine instruction 16

  • main() 2

    • exception and 141

  • make_pair() 173

  • make_shared() 166

  • make_tuple() 174

  • make_unique() 166

  • management, resource 72, 164

  • map 144, 146

    • and unordered_map 146

  • <map> 109

  • mapped type, value 144

  • mapping to hardware 16

  • match

  • mathematical

    • function 188

    • functions, special 188

    • functions, standard 188

  • <math.h> 188

  • Max Munch rule 118

  • meaning, C++ 209

  • member

    • function, const 50

    • initialization, in-class 215

    • initializer,default 68

  • memberwise copy 66

  • mem_fn() 180

  • memory 73

    • address 16

  • <memory> 109, 164, 166

  • merge() 156

  • Mergeable,concept 159

  • minus operator - 6

  • model,template compilation 104

  • modern C++ 214

  • modf() 188

  • modularity 29

  • module suport 32

  • modules, C++20 32

  • modulus operator % 6

  • Movable,concept 158

  • move 71

  • move() 72, 156, 167

  • MoveConstructible,concept 158

  • moved-from

  • move-only type 167

  • multi-line pattern 117

  • multimap 146

  • multiple

    • character sets 114

    • inheritance 211

    • return-values 44

  • multiply operator * 6

  • multiset 146

  • mutex 199

  • <mutex> 199

N

  • ,newline 3

  • naked

  • namespace scope 9

  • namespace 34

  • narrowing

    • = initializer 8

    • conversion 8

  • navigation, hierarchy 61

  • new

  • container allocator 178

  • naked 52

  • operator 51

  • newline 3

  • noexcept 37

  • noexcept() 215

  • non-memory resource

  • non-standard library

  • noreturn 215

  • normal_distribution

  • notation, regular expression 117

  • not-equal operator != 6

  • notify_one(), condition_variable 202

  • NULL 0, nullptr 13

  • nullptr 13

  • number,random 191

  • <numeric> 189

  • numerical algorithm 189

  • numeric_limits 193

O

  • object 5

    • function 85

    • in container 140

    • moved-from 72

  • object-oriented programming 57, 210

  • operations

    • default 66

    • essential 66

  • operator

    • %= 7

    • += 7

    • &,address-of 11

    • (),call 85

    • *,contents-of 11

    • --,decrement 7

    • /,divide 6

    • ==,equal 6

    • >, greater-than 6

    • >=,greater-than-or-equal 6

    • ++,increment 7

    • <, less-than 6

    • <=,less-than-or-equal 6

    • -,minus 6

    • %,modulus 6

    • *,multiply 6

    • !=,not-equal 6

    • <<,output 3

    • +,plus 6

    • %,remainder 6

    • /=,scaling 7

    • *=,scaling 7

    • arithmetic 6

    • comparison 6, 74

    • declarator 12

    • delete 51

    • new 51

    • overloaded 51

    • user-defined 51

  • optimization, short-string 113

  • optional 176

  • order of evaluation 7

  • ostream_iterator 154

  • out_of_range 141

  • output

    • bits of int 172

    • cout 3

    • operator <<

  • OutputIterator,concept 159

  • OutputRange,concept 160

  • overloaded operator 51

  • overloading

    • concept based 95

    • function 4

  • override 55

  • overview, container 146

  • ownership 164

P

  • packaged_task thread 203

  • pair 173

    • and structured binding 174

    • member first 173

    • member second 173

  • par 161

  • parallel algorithm 161

  • parameterized type 79

  • partial_sum() 189

  • par_unseq 161

  • passing data to task 197

  • pattern 116

  • perfect forwarding 168

  • Permutable,concept 159

  • phone_bookexample 138

  • plus operator + 6

  • pmr, namespace 178

  • pointer 17

  • policy, execution 161

  • polymorphic type 54

  • pow() 188

  • precondition 37

  • predicate 86, 155

  • Predicate,concept 159

  • print, regex 119

  • procedural programming 2

  • program 2

  • programming

  • promise

    • future and 202

    • member set_exception() 202

    • member set_value() 202

  • pronunciation, C++ 209

  • punct, regex 119

  • pure virtual 54

  • purpose, template 93

  • push_back() 52, 139, 143, 147

  • push_front() 143

R

S

  • s literal suffix 113

  • \s, regex 119

  • s, regex 119

  • \S, regex 119

  • safety,resource 72

  • Same,concept 158

  • scaling

    • operator /= 7

    • operator *= 7

  • scope

    • and lifetime 9

    • class 9

    • local 9

    • namespace 9

  • scoped_lock 164

  • scoped_lock() 199

  • search, binary 156

  • second,pair member 173

  • Semiregular,concept 158

  • Sentinel,concept 159

  • separate compilation 30

  • sequence 150

  • set 146

  • <set> 109

  • set_exception(),promisemember 202

  • set_value(),promisemember 202

  • shared_lock 200

  • shared_mutex 200

  • shared_ptr 164

  • sharing data task 199

  • short-string optimization 113

  • SignedIntegral,concept 158

  • SIMD 161

  • Simula 207

  • sin() 188

  • singly-linked list, forward_list 143

  • sinh() 188

  • size of type 6

  • size() 75, 147

  • SizedRange,concept 160

  • SizedSentinel,concept 159

  • sizeof 6

  • sizeof() 181

  • size_t 90

  • smart pointer 164

  • smatch 116

  • sort() 149, 156

  • Sortable, concept 159

  • space, regex 119

  • span

  • special mathematical functions 188

  • specialized container 170

  • sphbessel() 188

  • sqrt() 188

  • <sstream> 109

  • standard

    • ISO C++ 2

    • library 107

    • library algorithm 156

    • library,C++ 2

    • library, C with Classes 211

    • library,C++98 211

    • library container 146

    • library facilities 108

    • library header 108

    • library std 109

    • mathematical functions 188

  • standardization, C++ 212

  • state, moved-from 168

  • statement

  • static_assert 193

    • assertion 40

  • static_cast 53

  • std

  • <stdexcept> 109

  • STL 211

  • store

  • StrictTotallyOrdered,concept 158

  • StrictWeakOrder,concept 159

  • string

    • C-style 13

    • literal " 3

    • literal, raw 116

    • literal, type of 113

    • Unicode 114

  • string 111

  • <string> 109, 111

  • string_literals, literals 113

  • string_span 170

  • string_view 114

  • string_view_literals, literals 115

  • structured

    • binding 45

    • binding, pair and 174

    • binding, tuple and 174

  • subclass, superclass and 55

  • [] subscripting 147

  • substr(), string 112

  • suffix 75

  • superclass and subclass 55

  • suport,module 32

  • support, concept 94

  • sv literal suffix 115

  • swap() 76

  • Swappable, concept 158

  • SwappableWith,concept 158

  • switch statement 14

  • synchronized_pool_resource 178

T

  • table, hash 144

  • tag dispatch 181

  • tanh() 188

  • task

    • and thread 196

    • communication 202

    • passing data to 197

    • returning results from 198

    • sharing data 199

  • TC++PL 208

  • template 79

    • alias 184

    • argument, constrained 82

    • argument, default 98

    • arguments,>> 215

    • class 79

    • compilation model 104

    • constrained 82

    • debugging 100

    • extern 215

    • function 84

    • purpose 93

    • requirement 94

    • variadic 100

  • this 70

  • thread

  • <thread> 109, 196

  • thread_local 216

  • time 179

  • timeline, C++ 208

  • time_point 179

  • timing,clock 200

  • to hardware, mapping 16

  • transform_reduce() 189

  • translation unit 32

  • try

    • block 36

    • block as function body 141

  • try-block, RAII and 40

  • try-statement, RAII and 36

  • tuple 174

    • and structured binding 174

  • type 5

    • abstract 54

    • argument 82

    • concrete 48

    • conversion, explicit 53

    • function 181

    • fundamental 5

    • get<>() by 174

    • move-only 167

    • of string literal 113

    • parameterized 79

    • polymorphic 54

    • predicate 183

    • size of 6

  • typename 79, 152

  • <type_traits> 183

  • typing, duck 104

U

  • \U, regex 119

  • \u, regex 119

  • udl 75

  • Unicode string 114

  • uniform_int_distribution 191

  • uninitialized 8

  • unique_copy() 149, 156

  • unique_lock 200, 201

    • and scoped_lock 201

  • unique_ptr 62, 164

  • unordered_map 144, 146

  • <unordered_map> 109

  • unordered_multimap 146

  • unordered_multiset 146

  • unordered_set 146

  • unsigned 5

  • UnsignedIntegral,concept 158

  • upper,regex 119

  • use, concept 94

  • user-defined

  • using

    • alias 90

    • -declaration 34

    • -directive 35

  • usual arithmetic conversions 7

  • <utility> 109, 173, 174

V

  • valarray 192

  • <valarray> 192

  • value 5

    • argument 82

    • key and 144

    • mapped type 144

    • return, function 66

  • valuetype 147

  • value_type 90

  • variable 5

  • variadic template 100

  • variant 175

  • Vec

  • vector arithmetic 192

  • vector 138, 146

  • <vector> 109

  • vector<bool> 170

  • vectorized 161

  • View,concept 160

  • virtual 54

    • destructor 59

    • function, implementation of 56

    • function table vtbl 56

    • pure 54

  • void

    • * 221

    • * assignment, difference from C 221

    • return type 3

  • vtbl, virtual function table 56

W

  • w, regex 119

  • \w, regex 119

  • \W, regex 119

  • wait(), condition_variable 201

  • WeaklyEqualityComparable,concept 158

  • WG21 208

  • while statement 14

X

Z

  • zero, rule of 67


最后更新于