Team LiB
Previous Section Next Section

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

 

see also container

 

see also associative container

 

bucket management, 444

 

hash<key_type> specialization, 709, 788

 

compatible with == (equality), 710

 

key_type requirements, 445

 

override default hash, 446

 

unordered_map, 448

 

see also unordered container

 

* (dereference), 429

 

[] (subscript), 435, 448

 

adds element, 435

 

at, 435

 

definition, 423

 

header, 420

 

list initialization, 423

 

word_count program, 444

 

unordered_multimap, 448

 

see also unordered container

 

* (dereference), 429

 

definition, 423

 

has no subscript operator, 435

 

insert, 433

 

list initialization, 423

 

unordered_multiset, 448

 

see also unordered container

 

insert, 433

 

iterator, 429

 

list initialization, 423

 

override default hash, 446

 

unordered_set, 448

 

see also unordered container

 

header, 420

 

iterator, 429

 

list initialization, 423

 

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, see reference 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 =, see type 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

 

overloaded function, 801

 

pitfalls, 795

 

scope, 793, 794

 

name collisions, 795

 

utility header, 426, 530, 533, 694

 
Team LiB
Previous Section Next Section