register keyword, 472
reinterpret_cast operators, 946
relational operators, 217–220
C-style strings, comparing, 220–223
equality operator (==), 218–220
functor equivalents, 1031–1032
string class strings, comparing, 223–224
table of, 217
relationships
has-a, 721, 788
is-a, 720–722, 772, 808
remodel() function, 971
remote_access() function, 468
remove_copy() function, 1295, 1300
remove_copy_if() function, 1295, 1300
remove() function, 1295, 1299
remove_if() function, 1295, 1300
remove_if() method, 1280
remove() method, 1280
rend() method, 1251–1252, 1275
replace_copy() function, 1294, 1298
replace_copy_if() function, 1294, 1298
replace() function, 1294, 1298, 1302
replace_if() function, 1294, 1298
replace() method, 1268–1269
replacing strings, 1268–1269
report() function, 859
reserve() method, 966, 1258, 1279
reserved names, 1222–1223
reserved words, 1221
alternative tokens, table of, 1222
keywords, table of, 1221
reserved names, 1222–1223
ResetRanking() method, 718
resize() method, 1047, 1258, 1278
return addresses, 909
return statements, 30
return types, declarations, 1157
return types (functions), 30
return values, 31
return values (functions), 49, 57–59
returning
C-style strings, 341–343
references, 399
structures, 344–345, 348–351
returning objects, 662–664
const objects, 662–665
non-const objects, 663
reverse_copy() function, 1295, 1301
reverse() function, 1295
reverse iterators, 1003–1005
reverse() method, 1252, 1280
reversible containers
associative, multimap, 1023–1025
list, 1014, 1017
member functions, 1014–1016
vector, 1012–1013
review questions
chapter 2, 62
chapter 3, 110–111
chapter 4, 191–192
chapter 5, 250
chapter 6, 298–300
chapter 7, 372–373
chapter 8, 443–444
chapter 9, 498–501
chapter 10, 558–559
chapter 11, 623
chapter 12, 700–702
chapter 13, 779–780
chapter 14, 869–870
chapter 15, 947–949
chapter 16, 1056–1057
chapter 17, 1146–1147
chapter 18, 1209–1212
rewrite rule, 517
rfind() method, 961, 1261
right manipulator, 1091
right shift and assign operator ([]=), 1237
right shift operator ([]), 1236
Ritchie, Dennis, 11
rotate_copy() function, 1295, 1302
rotate() function, 1295, 1301
RTTI (runtime type information), 933–934
incorrect usage, 941–943
operators
dynamic cast, 934–939
typeid, 934, 939, 941, 944
type info class, 939–941, 944
type info structure, 934
rtti1.cpp, 936–938
rtti2.cpp, 939–941
ruler.cpp, 360
runtime, 155
runtime_error exception, 919
runtime type information, 933
rvalue reference, 1162–1164
constructors, C++11, 1256
rvalues, 400
S
Sales class
sales.cpp, 924
sales.h, 922
use_sales.cpp, 925–927
sales.cpp, 924
sales.h, 922
sayings1.cpp, 656
sayings2.cpp, 665
SCHAR_MAX constant, 72
SCHAR_MIN constant, 72
scientific manipulator, 1091
scope, 454, 483
class, 454, 514
class scope, 549–551
function prototype, 454
global, 454
local, 454–457
namespace, 454
nested classes, 891–892
potential, 483
scope-resolution operator (::), 467, 514, 1332
scoped enumerations, 1158
C++11, 551–552
search() function, 1288, 1292–1293
search_n() function, 1288, 1293
searching strings, 960–961, 1260
find_first_not_of() method, 1262–1263
find_first_of() method, 1262
find_last_not_of() method, 1263
find_last_of() method, 1262
find() method, 1260–1261
rfind() method, 1261
secref.cpp, 385
seekg() method, 1134–1136