Index

Knowledge is of two kinds.
We know a subject ourselves, or we know where we can find information on it.

– Samuel Johnson

Token

!=, not-equal operator 6

", string literal 3

$, regex 79

%

modulus operator 6

remainder operator 6

%=, operator 7

&

address-of operator 10

reference to 10

&&, rvalue reference 51

(, regex 79

(), call operator 64

(?: pattern 82

), regex 79

*

contents-of operator 10

multiply operator 6

pointer to 9

regex 79

*=, scaling operator 7

*? lazy 80

+

plus operator 6

regex 79

string concatenation 75

++, increment operator 7

+=

operator 7

string append 76

+? lazy 80

-, minus operator 6

--, decrement operator 7

.

member access 17

regex 79

/, divide operator 6

// comment 2

/=, scaling operator 7

:public 40

<<

output operator 2

output ostream 86

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

<, less-than operator 6

=

0 39

and == 6

auto 7

initializer 6

string assignment 77

==

= and 6

equal operator 6

string 76

>, greater-than operator 6

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

>>

input istream 87

template arguments 159

?, regex 79

?? lazy 80

[, regex 79

[]

array 122

array of 9

string 76

subscript operator 18

, backslash 3

], regex 79

^, regex 79

_1, placeholders 126

_2, placeholders 126

{, regex 79

{}

grouping 2

initializer 6

{}? lazy 80

|, regex 79

}, regex 79

~, destructor 37

0

= 39

nullptr NULL 12

0x hexadecimal literal 161

A

abs() 134

abstract

class 40

type 39

access ., member 17

accumulate() 135

acquisition RAII, resource 118

adaptor, function 125

address-of operator & 10

adjacent_difference() 135

aims, C++11 158

algorithm 107

container 108, 115

numerical 135

standard library 114

<algorithm> 73, 114

alias, using 67

alignas 159

alignof 159

allocation 37

almost container 121

alnum, regex 81

alpha, regex 81

[[:alpha:]] letter 81

ANSI C++ 157

append +=, string 76

argument

passing, function 52

type 61

value 61

arithmetic

conversions, usual 6

operator 6

vector 138

ARM 157

array

array vs. 123

of [] 9

array 122

[] 122

data() 122

initialize 122

size() 122

vs. array 123

vs. vector 122

<array> 73

asin() 134

assembler 155

assertion static_assert 30

assignment

=, string 77

copy 49, 52

move 5152

associative array – see map

async() launch 150

at() 98

atan() 134

atan2() 134

AT&T Bell Laboratories 157

auto = 7

auto_ptr, deprecated 161

B

back_inserter() 108

backslash 3

base and derived class 40

basic_string 77

BCPL 162

begin() 100, 108

beginner, book for 1

Bell Laboratories, AT&T 157

bibliography 166

binary search 114

bind() 126

and overloading 126

binder 125

bit-field, bitset and 123

bitset 123

and bit-field 123

and enum 123

blank, regex 81

block

as function body, try 99

try 28

body, function 2

book for beginner 1

bool 5

break 13

built-in type 15

C

C 155

and C++ compatibility 161

Classic 162

difference from 161

K&R 162

macro, difference from 165

programmer 168

void * assignment, difference from 165

with Classes 154

with Classes language features 155

with Classes standard library 156

C++

ANSI 157

compatibility, C and 161

core language 2

history 153

ISO 157

meaning 155

programmer 168

pronunciation 155

standard, ISO 2

standard library 2

standardization 157

timeline 154

C++03 157

C++0x, C++11 155, 158

C++11

aims 158

C++0x 155, 158

language features 158

library components 159

C++98 157

standard library 157

C11 161

C89 and C99 161

C99, C89 and 161

call operator () 64

callback 128

capacity() 97

capture list 65

carries_dependency 159

cast 39

deprecated C-style 161

named 161

catch

clause 28

every exception 99

catch(...) 99

ceil() 134

cerr 86

char 5

character sets, multiple 77

chrono 125

<chrono> 73, 125, 146

cin 87

class 34

concrete 34

scope 8

template 59

class 17

abstract 40

and struct 18

base and derived 40

hierarchy 42

interface 17

member 17

Classic C 162

clear(), iostream 89

C-library header 73

clock timing 146

<cmath> 73, 134

cntrl, regex 81

code complexity, function and 4

comment, // 2

communication, task 147

comparison operator 6

compatibility, C and C++ 161

compilation

model, template 68

separate 24

compiler 2

compile-time

computation 128

evaluation 9

complete encapsulation 52

complex 35, 135

<complex> 73, 134135

complexity, function and code 4

components, C++11 library 159

computation, compile-time 128

concatenation +, string 75

concept 63

concrete

class 34

type 34

concurrency 141

condition, declaration in 47

condition_variable 146

notify_one() 147

wait() 146

<condition_variable> 146

const, immutability 8

constant expression 9

const_cast 161

constexpr

function 9

immutability 8

const_iterator 112

constructor 18

and destructor 155

copy 49, 52

default 35

delegating 159

explicit 53

inheriting 159

initializer-list 38

invariant and 29

move 5152

container 36, 59, 95

algorithm 108, 115

almost 121

object in 98

overview 103

return 109

sort() 129

specialized 121

standard library 103

contents-of operator * 10

conversion

explicit type 39, 161

narrowing 7

conversions, usual arithmetic 6

copy 48

and hierarchy 55

assignment 49, 52

constructor 49, 52

cost of 50

memberwise 52

copy() 114

copyif() 114

core language, C++ 2

cos() 134

cosh() 134

cost of copy 50

count() 114

count_if() 113114

cout 86

output 2

<cstdlib> 73

C-style

cast, deprecated 161

error handling 134

string 12

Currying 125

D

d, regex 81

D, regex 81

d, regex 81

data race 142

data(), array 122

D&E 154

deadlock 145

deallocation 37

declaration 5

function 3

in condition 47

interface 23

declarator operator 11

decltype 159

decrement operator -- 7

default

constructor 35

operations 52

=default 53

defaultfloat 91

definition implementation 24

delegating constructor 159

=delete 55

delete

an operation 55

naked 38

operator 37

deprecated

auto_ptr 161

C-style cast 161

exception specification 161

feature 160

deque 103

derived class, base and 40

destructor 37, 52

~ 37

constructor and 155

virtual 44

dictionary – see map

difference

from C 161

from C macro 165

from C void * assignment 165

digit, [[:digit:]] 81

digit, regex 81

[[:digit:]] digit 81

dispatch, tag 129

distribution, random 136

divide operator / 6

domain error 134

double 5

duck typing 68

duration 125

duration_cast 125

dynamic store 37

dynamic_cast 47

is instance of 47

is kind of 47

E

EDOM 134

element requirements 98

encapsulation, complete 52

end() 100, 108

engine, random 136

enum

bitset and 123

class enumeration 20

enumeration 20

enumeration

enum 20

enum class 20

equal operator == 6

equal_range() 114, 124

ERANGE 134

erase() 101

errno 134

error

domain 134

handling 27

handling, C-style 134

range 134

run-time 27

essential operations 52

evaluation

compile-time 9

partial 125

example

find_all() 109

Hello, World! 2

Rand_int 137

Vec 98

exception 27

and main() 99

catch every 99

specification, deprecated 161

explicit type conversion 39, 161

explicit constructor 53

exponential_distribution 136

export removed 161

expr() 134

expression

constant 9

lambda 65

extern template 159

F

fabs() 134

facilities, standard library 72

feature, deprecated 160

features

C with Classes language 155

C++11 language 158

file, header 25

final 159

find() 108, 114

find_all() example 109

find_if() 113114

first, pair member 124

fixed 91

floor() 134

fmod() 134

for

statement 10

statement, range 10

forward() 120

forward_list 103

<forward_list> 73

free store 37

frexp() 134

<fstream> 73, 92

__func__ 159

function 2

adaptor 125

and code complexity 4

argument passing 52

body 2

body, try block as 99

constexpr 9

declaration 3

implementation of virtual 42

mathematical 134

object 64

overloading 4

template 62

type 128

value return 52

function 127

and nullptr 127

fundamental type 5

future

and promise 147

member get() 147

<future> 73, 147

G

garbage collection 54

generic programming 62

get<>() 125

get(), future member 147

graph, regex 81

greater-than operator > 6

greater-than-or-equal operator >= 6

greedy match 80, 83

grouping, {} 2

H

half-open sequence 114

handle 18, 38

resource 49, 119

hash table 102

header

C-library 73

file 25

standard library 73

heap 37

Hello, World! example 2

hexadecimal literal, 0x 161

hexfloat 91

hierarchy

class 42

copy and 55

navigation 47

history, C++ 153

HOPL 154

I

if statement 12

ifstream 92

immutability

const 8

constexpr 8

implementation

definition 24

inheritance 46

iterator 111

of virtual function 42

string 77

in-class member initialization 159

#include 25

increment operator ++ 7

inheritance 40

implementation 46

interface 46

multiple 156

inheriting constructor 159

initialization, in-class member 159

initialize 38

array 122

initializer

= 6

{} 6

initializer-list constructor 38

initializer_list 38

inline 35

namespace 159

inlining 35

inner_product() 135

input

istream >> 87

of user-defined type 90

string 88

insert() 101

instantiation 60

int 5

output bits of 123

interface

class17

declaration 23

inheritance 46

invariant 29

and constructor 29

I/O 86

iterator and 112

state 89

<iomanip> 91

<ios> 73, 91

iostream

clear() 89

setstate() 89

<iostream> 2, 73

iota() 135

is

instance of, dynamic_cast 47

kind of, dynamic_cast 47

ISO

C++ 157

C++ standard 2

ISO-14882 157

istream 85

>>, input 87

<istream> 87

istream_iterator 112

istringstream 92

iterator 108

and I/O 112

implementation 111

iterator 100, 112

<iterator> 130

iterator_category 129

iterator_traits 128, 130

iterator_type 129

J

join(), thread 142

K

key and value 101

K&R C 162

L

L, regex 81

l, regex 81

lambda expression 65

language

and library 71

features, C with Classes 155

features, C++11 158

launch, async() 150

lazy

{}? 80

?? 80

*? 80

+? 80

match 80, 83

ldexp() 134

leak, resource 47, 54, 118

less-than operator < 6

less-than-or-equal operator <= 6

letter, [[:alpha:]] 81

library

algorithm, standard 114

C with Classes standard 156

C++98 standard 157

components, C++11 159

container, standard 103

facilities, standard 72

language and 71

non-standard 71

standard 71

lifetime, scope and 8

<limits> 128, 138

linker 2

list, capture 65

list 100, 103

literal

", string 3

0x hexadecimal 161

raw string 78

user-defined 159

local scope 8

lock() 145

and RAII 145

log() 134

log10() 134

long long 159

lower, regex 81

M

macro, difference from C 165

main() 2

exception and 99

make_pair() 124

make_shared() 120

make_tuple() 125

make_unique() 120

management, resource 54, 117

manipulator 91

map 101, 103

<map> 73

mapped type, value 101

match

greedy 80, 83

lazy 80, 83

mathematical

function 134

functions, standard 134

<math.h> 134

meaning, C++ 155

member

access . 17

class 17

initialization, in-class 159

memberwise copy 52

mem_fn() 126

<memory> 73, 118, 120

merge() 114

minus operator - 6

model, template compilation 68

modf() 134

modularity 23

modulus operator % 6

move 51

assignment 5152

constructor 5152

move() 52, 114

multimap 103

multiple

character sets 77

inheritance 156

multiply operator * 6

multiset 103

mutex 144

<mutex> 144

N

3

naked

delete 38

new 38

named cast 161

namespace scope 8

namespace 26

inline 159

placeholders 126

std 72

narrowing 161

conversion 7

navigation, hierarchy 47

new

naked 38

operator 37

noexcept 28

noexcept() 159

non-standard library 71

noreturn 159

normal_distribution 136

notation, regular expression 79

not-equal operator != 6

notify_one(), condition_variable 147

NULL 0, nullptr 12

nullptr 11

function and 127

NULL 0 12

number, random 136

<numeric> 135

numerical algorithm 135

numeric_limits 138

O

object 5

function 64

in container 98

object-oriented programming 42

operation, delete an 55

operations

default 52

essential 52

operator

%= 7

+= 7

&, address-of 10

(), call 64

*, contents-of 10

--, 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 2

+, plus 6

%, remainder 6

*=, scaling 7

/=, scaling 7

arithmetic 6

comparison 6

declarator 11

delete 37

new 37

overloaded 36

user-defined 36

operator [], subscript 18

optimization, short-string 77

ostream 85

<<, output 86

<ostream> 86

ostream_iterator 112

ostringstream 92

out_of_range 98

output

bits of int 123

cout 2

of user-defined type 90

operator << 2

ostream << 86

string 88

overloaded operator 36

overloading

bind() and 126

function 4

override 40

override 45

overview, container 103

ownership 118

P

packaged_task thread 149

pair 124

member first 124

member second 124

parameterized type 59

partial evaluation 125

partial_sum() 135

passing data to task 143

pattern, (? 82

phone_book example 96

placeholders

_1 126

_2 126

namespace 126

plus operator + 6

pointer

smart 118

to * 9

polymorphic type 40

pow() 134

precison() 91

precondition 29

predicate 64, 113

type 130

print, regex 81

program 2

programmer

C++ 168

C 168

programming

generic 62

object-oriented 42

promise

future and 147

member set_exception() 147

member set_value() 147

pronunciation, C++ 155

punct, regex 81

pure virtual 39

purpose, template 62

push_back() 38, 97, 101

push_front() 101

R

R" 78

race, data 142

RAII

lock() and 145

resource acquisition 118

RAII 38

Rand_int example 137

random number 136

random

distribution 136

engine 136

<random> 73, 136

range

checking Vec 98

error 134

for statement 10

raw string literal 78

reference

&&, rvalue 51

rvalue 52

to & 10

regex

? 79

( 79

) 79

^ 79

} 79

$ 79

. 79

| 79

{ 79

[ 79

* 79

] 79

+ 79

alnum 81

alpha 81

blank 81

cntrl 81

d 81

D 81

d 81

digit 81

graph 81

L 81

l 81

lower 81

print 81

punct 81

regular expression 78

repetition 80

S 81

s 81

s 81

space 81

u 81

U 81

upper 81

W 81

w 81

w 81

xdigit 81

<regex> 73, 78

regular expression 78

regex_iterator 83

regex_search 78

regular

expression notation 79

expression <regex> 78

expression regex 78

reinterpret_cast 161

remainder operator % 6

removed, export 161

repetition, regex 80

replace() 114

string 76

replace_if() 114

requirement, template 63

requirements, element 98

reserve() 97

resource

acquisition RAII 118

handle 49, 119

leak 47, 54, 118

management 54, 117

safety 54

rethrow 30

return

function value 52

type, suffix 159

return

container 109

type, void 3

returning results from task 144

run-time error 27

rvalue

reference 52

reference && 51

S

S, regex 81

s, regex 81

s, regex 81

safety, resource 54

saving space 19

scaling

operator *= 7

operator /= 7

scientific 91

scope

and lifetime 8

class 8

local 8

namespace 8

search, binary 114

second, pair member 124

separate compilation 24

sequence 108

half-open 114

set 103

<set> 73

set_exception(), promise member 147

setstate(), iostream 89

set_value(), promise member 147

shared_ptr 118

sharing data task 144

short-string optimization 77

Simula 153

sin() 134

sinh() 134

size of type 5

size(), array 122

sizeof 5

sizeof() 128

size_t 67

smart pointer 118

sort() 107, 114

container 129

space, saving 19

space, regex 81

specialized container 121

sqrt() 134

<sstream> 73, 92

standard

ISO C++ 2

library 71

library algorithm 114

library, C++ 2

library, C with Classes 156

library, C++98 157

library container 103

library facilities 72

library header 73

library std 72

mathematical functions 134

standardization, C++ 157

state, I/O 89

statement

for 10

if 12

range for 10

switch 13

while 12

static_assert 138

assertion 30

static_cast 39, 161

std 2

namespace 72

standard library 72

<stdexcept> 73

STL 157

store

dynamic 37

free 37

string

C-style 12

literal " 3

literal, raw 78

Unicode 77

string 75

[] 76

== 76

append += 76

assignment = 77

concatenation + 75

implementation 77

input 88

output 88

replace() 76

substr() 76

<string> 73, 75

stringstream 92

struct 16

class and 18

union and 19

subclass, superclass and 40

subscript operator [] 18

substr(), string 76

suffix return type 159

superclass and subclass 40

switch statement 13

T

table, hash 102

tag dispatch 129

tanh() 134

task

and thread 142

communication 147

passing data to 143

returning results from 144

sharing data 144

TC++PL 154

template

arguments, >> 159

compilation model 68

variadic 66

template 59

class 59

extern 159

function 62

purpose 62

requirement 63

thread

join() 142

packaged_task 149

task and 142

<thread> 73, 142

thread_local 159

time 125

timeline, C++ 154

time_point 125

timing, clock 146

try

block 28

block as function body 99

tuple 125

type 5

abstract 39

argument 61

built-in 15

concrete 34

conversion, explicit 39, 161

function 128

fundamental 5

input of user-defined 90

output of user-defined 90

parameterized 59

polymorphic 40

predicate 130

size of 5

typename 59, 110

types, user-defined 15

<type_traits> 130

typing, duck 68

U

U, regex 81

u, regex 81

Unicode string 77

uniform_int_distribution 136

uninitialized 7

union 19

and struct 19

unique_copy() 107, 114

unique_lock 144, 146

unique_ptr 47, 118

unordered_map 102103

<unordered_map> 73

unordered_multimap 103

unordered_multiset 103

unordered_set 103

unsigned 5

upper, regex 81

user-defined

literal 159

operator 36

type, input of 90

type, output of 90

types 15

using alias 67

usual arithmetic conversions 6

<utility> 73, 124125

V

valarray 138

<valarray> 138

value 5

argument 61

key and 101

mapped type 101

return, function 52

value_type 67

variable 5

variadic template 66

Vec

example 98

range checking 98

vector arithmetic 138

vector 96, 103

array vs. 122

<vector> 73

vector<bool> 121

virtual 39

destructor 44

function, implementation of 42

function table vtbl 42

pure 39

void

* 165

* assignment, difference from C 165

return type 3

vtbl, virtual function table 42

W

w, regex 81

W, regex 81

w, regex 81

wait(), condition_variable 146

WG21 154

while statement 12

whitespace 87

X

X3J16 157

xdigit, regex 81

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.189.170.206