Skip to content

U

unary operators, 134, 169

  • overloaded operator, 552

unary predicate, 386, 418

unary_function deprecated, 579

uncaught exception, 773

undefined behavior, 35, 80

  • base class destructor not virtual, 622

  • bitwise operators and signed values, 153

  • caching end() iterator, 355

  • cstring functions, 122

  • dangling pointer, 463

  • default initialized members of built-in type, 263

  • delete of invalid pointer, 460

  • destination sequence too small, 382

  • element access empty container, 346

  • invalidated iterator, 107, 353

  • missing return statement, 224

  • misuse of smart pointer get, 466

  • omitting [] when deleting array, 479

  • operand order of evaluation, 138, 149

  • out-of-range subscript, 93

  • out-of-range value assigned to signed type, 35

  • overflow and underflow, 140

  • pointer casts, 163

  • pointer comparisons, 123

  • return reference or pointer to local variable, 225

  • string invalid initializer, 361

  • uninitialized

  • dynamic object, 458

  • local variable, 205

  • pointer, 54

  • variable, 45

  • using unconstructed memory, 482

  • using unmatched match object, 737

  • writing to a const object, 163

  • wrong deleter with smart pointer, 480

underflow_error, 197

unformatted IO, 761, 770

  • istream, 761

  • multi-byte, istream, 763

  • single-byte, istream, 761

unget, istream, 761

uniform_int_distribution, 746

uniform_real_distribution, 750

uninitialized, 8, 28, 44, 80

  • pointer, undefined behavior, 54

  • variable, undefined behavior, 45

uninitialized_copy, 483

  • move iterator, 543

uninitialized_fill, 483

union, 847, 864

  • anonymous, 848, 862

  • class type member, 848

  • assignment operators, 850

  • copy control, 851

  • default constructor, 850

  • deleted copy control, 849

  • placement new, 851

  • definition, 848

  • discriminant, 850

  • restrictions, 847

unique, 384, 878

  • list and forward_list, 415

unique_copy, 403, 878

unique_ptr, 450, 470472, 491

  • * (dereference), 451

  • copy and assignment, 470

  • definition, 470, 472

  • deleter, 472, 491

  • bound at compile time, 678

  • dynamically allocated array, 479

  • initialization, 470

  • pitfalls, 469

  • release, 470

  • reset, 470

  • return value, 471

  • transfer ownership, 470

  • with new, 470

unitbuf, manipulator, 315

unnamed namespace, 791, 818

  • local to file, 791

  • replace file static, 792

unordered container, 443, 448

unordered_map, 448

unordered_multimap, 448

unordered_multiset, 448

unordered_set, 448

unscoped enumeration, 832, 864

  • as union discriminant, 850

  • conversion to integer, 834

  • enum, 832

unsigned, 34, 80

  • char, 34

  • conversion, 36

  • conversion from signed, 34

  • conversion to signed, 160

  • literal (numU or numu), 41

  • size return type, 88

unsigned type, 34

unwinding, stack, 773, 818

upper_bound

  • algorithm, 873

  • ordered container, 438

  • used in Basket, 632

uppercase, manipulator, 755

use count, seereference count

user-defined conversion, see class type conversion

user-defined header, 7677

  • const and constexpr, 76

  • default argument, 238

  • function declaration, 207

  • #include, 21

  • inline function, 240

  • inline member function definition, 273

  • template definition, 656

  • template specialization, 708

using =, seetype alias declaration

using declaration, 82, 132, 793, 818

  • access control, 615

  • not in header files, 83

  • overloaded function, 800

  • overloaded inherited functions, 621

  • scope, 793

using directive, 793, 818

utility header, 426, 530, 533, 694