Skip to main content
Contents Index
Dark Mode Prev Up Next Profile
\(
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Chapter 23 Templates and Array Lists
In this chapter, we will explore how to write generic code using templates. Generics allow us to create functions and classes that can operate on different data types.
We will also learn about a simple data structure, the array list, that uses templates to allow storage of any data type.