Skip to content

L

L'c' (wchar_t literal), 38

label

labeled statement, 192, 200

lambda expression, 388, 418

  • arguments, 389

  • biggies program, 391

  • reference capture, 393

  • capture list, 388, 417

  • capture by reference, 393

  • capture by value, 390, 392

  • implicit capture, 394

  • inferred return type, 389, 396

  • mutable, 395

  • parameters, 389

  • passed to find_if, 390

  • passed to stable_sort, 389

  • synthesized class type, 572574

  • trailing return type, 396

left, manipulator, 758

left-inclusive interval, 331, 373

length_error, 197

less<T>, 575

less_equal<T>, 575

letter grade, program, 175

lexicographical_compare, 881

library function objects, 574

  • as arguments to algorithms, 575

library names to header table, 866

library type, 5, 27, 82

lifetime, 204, 252

  • compared to scope, 204

  • dynamically allocated objects, 450, 461

  • global variable, 204

  • local variable, 204

  • parameter, 205

linkage directive, 858, 863

  • C++ to C, 860

  • compound, 858

  • overloaded function, 860

  • parameter or return type, 859

  • pointer to function, 859

  • return type, 859

  • single, 858

linker, 208, 252

  • template errors at link time, 657

list, 373

list initialization, 43, 79

  • = (assignment), 145

  • array, 337

  • associative container, 423

  • container, 336

  • dynamically allocated, object, 459

  • pair, 427, 431, 527

  • preferred, 99

  • prevents narrowing, 43

  • return value, 226, 427, 527

  • sequential container, 336

  • vector, 98

literal, 38, 3841, 79

  • bool, 41

  • in condition, 143

  • char, 39

  • decimal, 38

  • double (numEnum or numenum), 38

  • float (numF or numf), 41

  • floating-point, 38

  • hexadecimal (0Xnum or 0xnum), 38

  • int, 38

  • long (numL or numl), 38

  • long double (ddd.dddL or ddd.dddl), 41

  • long long (numLL or numll), 38

  • octal (0num), 38

  • string, 7, 28, 39

  • unsigned (numU or numu), 41

  • wchar_t, 40

literal type, 66

  • class type, 299

local class, 852, 863

  • access control, 853

  • name lookup, 853

  • nested class in, 854

  • restrictions, 852

local scope, see block scope

local static object, 205, 252

local variable, 204, 252

  • destroyed during exception handling, 467, 773

  • destructor, 502

  • lifetime, 204

  • pointer, return value, 225

  • reference, return value, 225

  • return statement, 224

lock, weak_ptr, 473

logic_error, 197

logical operators, 141, 142

  • condition, 141

  • function object, 574

logical_and<T>, 575

logical_not<T>, 575

logical_or<T>, 575

long, 33

  • literal (numL or numl), 38

long double, 33

  • literal (ddd.dddL or ddd.dddl), 41

long long, 33

  • literal (numLL or numll), 38

lookup, name, seename lookup

low-level const, 64, 79

  • argument and parameter, 213

  • conversion from, 163

  • conversion to, 162

  • overloaded function, 232

  • template argument deduction, 693

low-order bits, 723, 770

lower_bound

  • algorithm, 873

  • ordered container, 438

lround, 751

lvalue, 135, 169

  • cast to rvalue reference, 691

  • copy initialization, uses copy constructor, 539

  • decltype, 135

  • reference collapsing rule, 688

  • result

  • -> (arrow operator), 150

  • ++ (increment) prefix, 148

  • -- (decrement) prefix, 148

  • * (dereference), 135

  • [] (subscript), 135

  • = (assignment), 145

  • , (comma operator), 158

  • ?: (conditional operator), 151

  • cast, 163

  • decltype, 71

  • function reference return type, 226

  • variable, 533

lvalue reference, see alsoreference, 532, 549

  • collapsing rule, 688

  • compared to rvalue reference, 533

  • function matching, 539

  • initialization, 532

  • member function, 546

  • overloaded, 547

  • move, 533

  • template argument deduction, 687