R
Raccoon
, virtual base class, 812
raise exception, seethrow
rand
function, drawbacks, 745
random
header, 745
random IO, 765
random-access iterator, 412, 418
random-number library, 745
random_shuffle
, 878
range for
statement, 91, 132, 187, 187–189, 200
range_error
, 197
rdstate
, stream, 313
read
reallocate
, StrVec
, 530
move iterator version, 543
variadic template, 701
ref
, binds reference parameter, 400, 418
see alsolvalue reference
see alsorvalue reference
auto
deduces referred to type, 69collapsing rule, 688
forward
, 694lvalue arguments, 688
move
, 691rvalue reference parameters, 693
const
, seereference toconst
conversion
not from
const
, 61to reference to
const
, 162data member, initialization, 289
declaration style, 57
decltype
yields reference type, 71definition, 51
derived-to-base conversion, 597
under multiple inheritance, 805
dynamic_cast
operator, 826initialization, 51
member function, 546
bind
, 400limitations, 214
remove_reference
, 684return type, 224
assignment operator, 500
is lvalue, 226
return value, local variable, 225
to array parameter, 217
reference
, container, 333
reference count, 452, 491, 514, 550
regex_constants
, 743
match_flag_type
, 743
regular expression library, 728, 770
case sensitive, 730
compiled at run time, 732
ECMAScript, 730
file extension program, 730
i before e program, 729
version 2, 734
pattern, 729
phone number,
valid
, 740phone number pattern, 739
phone number program, 738
phone number reformat, program, 742
regex iterators, 734
search functions, 729
smatch
, provides context for a match, 735subexpression, 738
file extension program version 2, 738
types, 733
valid
, program, 740
machine-dependent, 164
relational operators, 141, 143
arithmetic conversion, 144
container adaptor, 370
container member, 340
function object, 574
iterator, 111
overloaded operator, 562
Sales_data
, 563string
, 88tuple
, 720vector
, 102
release
, unique_ptr
, 470
remove
, 878
list
andforward_list
, 415
remove_copy
, 878
remove_copy_if
, 878
remove_from_Folders
, Message
, 523
remove_if
, 878
list
andforward_list
, 415
remove_pointer
, 685
remove_reference
, 684
move
, 691
string
, 362
replace_copy_if
, 874
replace_if
, 875
reserve
reserved identifiers, 46
reset
reset
program
resize
restricted word_count
program, 422
*
(dereference), lvalue, 135[]
(subscript), lvalue, 135,
(comma operator), lvalue, 158?:
(conditional operator), lvalue, 151cast, lvalue, 163
rethrow, 776
return
statement, 222, 222–228
return type, 2, 27, 202, 204, 252
array, 204
array using
decltype
, 230function, 204
function pointer, 249
using
decltype
, 250linkage directive, 859
main
, 2member function, 283
nonreference, 224
copy initialized, 498
pointer, 204
pointer to function, 204
reference, 224
reference to
const
, 226reference yields lvalue, 226
virtual function, 606
void
, 223
return value
conversion, 223
copy initialized, 498
initialization, 224
local variable, pointer, 225
reference, local variable, 225
tuple
, 721type checking, 223
unique_ptr
, 471
reverse
, 878
list
andforward_list
, 415
reverse iterator, 401, 407–409, 418
reverse_copy_if
, 414
reverse_iterator
rfind
, string
, 366
right
, manipulator, 758
rotate
, 878
rotate_copy
, 878
virtual destructor exception, 622
run-time type identification, 825–831, 864
compared to virtual functions, 829
bad_cast
, 826to poiner, 825
to reference, 826
type-sensitive equality, 829
returns
type_info
, 827
initialization from
string
, 196