P
default initialization, 427
definition, 426
initialization, 426
make_pair
, 428map
,*
(dereference), 429operations, 427
public data members, 427
return value, 527
Panda
, 803
buffer overflow, 215
to pointer conversion, 214
C-style string, 216
const
, 212copy constructor, 496
ellipsis, 222
forwarding, 693
function pointer, linkage directive, 859
implicit
this
, 257iterator, 216
lifetime, 205
low-level
const
, 213main
function, 218multidimensional array, 218
nonreference, 209
uses copy constructor, 498
uses move constructor, 539
pointer to
const
, 246pointer to array, 218
pointer to function, 249
linkage directive, 859
to array, 217
reference to
const
, 211template, seetemplate parameter
top-level
const
, 212
parameter list
parameter pack, 714
parentheses, override precedence, 136
partial_sort
, 877
partial_sort_copy
, 877
partial_sum
, 882
partition
, 876
partition_copy
, 876
partition_point
, 876
pass by reference, 208, 210, 252
peek
, istream
, 761
PersonInfo
, 321
phone number, regular expression
pitfalls
dynamic memory, 462
order of evaluation, 149
self-assignment, 512
smart pointer, 469
using
directive, 795
placeholders
, 399
placement new
, 460, 491, 824, 863
union
, class type member, 851
plus<T>
, 575
++
(increment), 118--
(decrement), 118*
(dereference), 53[]
(subscript), 121=
(assignment), 55+
(addition), 119-
(subtraction), 119and array, 117
const
pointer toconst
, 63constexpr
, 67conversion
from array, 161
to
bool
, 162to
void*
, 161declaration style, 57
definition, 52
delete
, 460derived-to-base conversion, 597
under multiple inheritance, 805
dynamic_cast
, 825invalid, 52
multidimensional array, 128
off-the-end, 118
relational operators, 123
return type, 204
return value, local variable, 225
to
const
, 62and typedef, 68
to array
parameter, 218
return type, 204
return type declaration, 229
to
const
, 79to pointer, 58
typeid
operator, 828valid, 52
volatile
, 856
auto
, 249callable object, 388
decltype
, 249explicit template argument, 686
function template instantiation, 686
linkage directive, 859
overloaded function, 248
parameter, 249
using
decltype
, 250template argument deduction, 686
trailing return type, 250
type alias, 249
typedef
, 249
arrow (
->*
), 837definition, 836
dot (
.*
), 837function, 838
and
bind
, 843and
function
, 842and
mem_fn
, 843not callable object, 842
function call, 839
function table, 840
precedence, 838
pop
pop_back
pop_front
, sequential container, 348
portable, 854
=
(assignment), 146?:
(conditional operator), 151assignment and relational operators, 146
dot and dereference, 150
increment and dereference, 148
of IO operator, 156
overloaded operator, 553
parentheses overrides, 136
pointer to member and call operator, 838
precedence table, 166
precision
member, ostream
, 756
prefix
, smatch
, 736
prev_permutation
, 879
print
, Sales_data
, 261
print
program
array parameter, 215
array reference parameter, 217
pointer and size parameters, 217
pointer parameter, 216
two pointer parameters, 216
variadic template, 701
print_total
PrintString
, 571
()
(call operator), 571
emplace
, 371empty
, 371equality and relational operators, 370
initialization, 369
pop
, 371push
, 371sequential container, 371
size
, 371swap
, 371top
, 371
private
program
addition
Sales_data
, 74alternative_sum
, 682biggies
, 391binops
desk calculator, 577book from author version 1, 438
book from author version 2, 439
book from author version 3, 440
bookstore
Sales_data
, 255Sales_data
using algorithms, 406Sales_item
, 24buildMap
, 442compare
, 652count_calls
, 206
debug_rep
additional nontemplate versions, 698
general template version, 695
nontemplate version, 697
pointer template version, 696
error_msg
, 221
fact
, 202
factorial
, 227
factory
new
, 461shared_ptr
, 453file extension, 730
version 2, 738
find last word, 408
find_char
, 211findBook
, 721flip
, 694flip1
, 692flip2
, 693grade clusters, 103
grading
bitset
, 728bitwise operators, 154
i before e, 729
version 2, 734
isShorter
, 211letter grade, 175
make_plural
, 224message handling, 519
phone number
istringstream
, 321ostringstream
, 323reformat, 742
regular expression version, 738
valid
, 740
print
array parameter, 215
array reference parameter, 217
pointer and size parameters, 217
pointer parameter, 216
two pointer parameters, 216
variadic template, 701
print_total
, 593Query
, 635random IO, 766
reset
pointer parameters, 209
reference parameters, 210
restricted
word_count
, 422sum
, 682swap
, 223TextQuery
, 486design, 485
transform
, 442valid
, 740vector
capacity, 357vowel counting, 179
word_count
promotion, see integral promotion
protected
ptr_fun
deprecated, 401
public
pure virtual function, 609, 650
push
push_back
push_front
put
, istream
, 761
putback
, istream
, 761