Skip to content

T

\t (tab character), 39

tellp, tellg, 763768

template

template argument deduction, 678, 714

  • compare, 680

  • explicit template argument, 682

  • function pointer, 686

  • limited conversions, 679

  • low-level const, 693

  • lvalue reference parameter, 687

  • multiple function parameters, 680

  • parameter with nontemplate type, 680

  • reference parameters, 687689

  • rvalue reference parameter, 687

  • top-level const, 679

template class, seeclass template

template function, seefunction template

template parameter, 653, 714

  • default template argument, 670

  • class template, 671

  • function template, 671

  • name, 668

  • restrictions on use, 669

  • nontype parameter, 654, 714

  • must be constant expression, 655

  • type requirements, 655

  • scope, 668

  • template argument deduction, 680

  • type parameter, 654, 654, 714

  • as friend, 666

  • used in template class, 660

template parameter pack, 699, 714

template specialization, 707, 706712, 714

  • class template, 709712

  • class template member, 711

  • compare function template, 706

  • compared to overloading, 708

  • declaration dependencies, 708

  • function template, 707

  • hash<key_type>, 709, 788

  • headers, 708

  • of namespace member, 709, 788

  • partial, class template, 711, 714

  • scope, 708

  • template<>, 707

template<>

  • default template argument, 671

  • template specialization, 707

temporary, 62, 80

terminate function, 773, 818

  • exception handling, 196, 200

  • machine-dependent, 196

terminology

  • const reference, 61

  • iterator, 109

  • object, 42

  • overloaded new and delete, 822

test, bitset, 727

TextQuery, 485

  • class definition, 487

  • constructor, 488

  • main program, 486

  • program design, 485

  • query, 489

  • revisited, 635

this pointer, 257, 306

  • static members, 301

  • as argument, 266

  • in return, 260

  • overloaded

  • on const, 276

  • on lvalue or rvalue reference, 546

throw, 193, 193, 200, 772, 818

throw(), exception specification, 780

tie member, ostream, 315

to_string, 368

Token, 849

  • assignment operators, 850

  • copy control, 851

  • copyUnion, 851

  • default constructor, 850

  • discriminant, 850

tolower, 92

top

top-level const, 64, 80

  • and auto, 69

  • argument and parameter, 212

  • decltype, 71

  • parameter, 232

  • template argument deduction, 679

toupper, 92

ToyAnimal, virtual base class, 815

trailing return type, 229, 252

  • function template, 684

  • lambda expression, 396

  • pointer to array, 229

  • pointer to function, 250

transform

translation unit, 4

trunc (file mode), 319

try block, 193, 194, 200, 773, 818

tuple, 718, 770

  • findBook, program, 721

  • equality and relational operators, 720

  • header, 718

  • initialization, 718

  • make_tuple, 718

  • return value, 721

  • value initialization, 718

type

type alias declaration, 68, 78, 80

  • pointer, to array, 229

  • pointer to function, 249

  • pointer to member, 839

  • template type, 666

type independence, algorithms, 377

type member, class, 271

type parameter, seetemplate parameter

type transformation templates, 684, 714

  • type_traits, 685

type_info, 864

  • header, 197

  • name, 831

  • no copy or assign, 831

  • operations, 831

  • returned from typeid, 827

type_traits

  • header, 684

  • remove_pointer, 685

  • remove_reference, 684

  • and move, 691

  • type transformation templates, 685

typedef, 67, 80

  • const, 68

  • and pointer, to const, 68

  • pointer, to array, 229

  • pointer to function, 249

typeid operator, 826, 827, 864

  • returns type_info, 827

typeinfo header, 826, 827, 831

typename

  • compared to class, 654

  • required for type member, 670

  • template parameter, 654