\hypertarget{group__Array1}{}\section{One-\/\+Dimensional Arrays}
\label{group__Array1}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}


One-\/dimensional arrays.  


\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{classSPL_1_1Array1}{S\+P\+L\+::\+Array1$<$ T $>$}
\begin{DoxyCompactList}\small\item\em A one-\/dimensional array class with lazy copying and reference counting. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef Array1$<$ double $>$ \hyperlink{group__Array1_gaf143b0253ce36dfbfb356f94fe2290b3}{S\+P\+L\+::\+Real\+Array1}
\begin{DoxyCompactList}\small\item\em A one-\/dimensional array with real elements. \end{DoxyCompactList}\item 
typedef Array1$<$ int $>$ \hyperlink{group__Array1_ga282718c5d07040671e9a5ee17a1c1590}{S\+P\+L\+::\+Int\+Array1}
\begin{DoxyCompactList}\small\item\em A one-\/dimensional array with integer elements. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$class T $>$ }\\std\+::ostream \& \hyperlink{group__Array1_gaf1badc1a463f5395aaf54a495d2e82b8}{S\+P\+L\+::operator$<$$<$} (std\+::ostream \&out, const Array1$<$ T $>$ \&a)
\begin{DoxyCompactList}\small\item\em Output an array to the specified stream. \end{DoxyCompactList}\item 
{\footnotesize template$<$class T $>$ }\\std\+::istream \& \hyperlink{group__Array1_ga14cfa8ad133a1b52a2c5e2750110b3e7}{S\+P\+L\+::operator$>$$>$} (std\+::istream \&in, Array1$<$ T $>$ \&a)
\begin{DoxyCompactList}\small\item\em Input an array from the specified stream. \end{DoxyCompactList}\item 
{\footnotesize template$<$class T $>$ }\\bool \hyperlink{group__Array1_ga57177dc0b15aa4e649eabaffcfd7c1b0}{S\+P\+L\+::operator==} (const Array1$<$ T $>$ \&a, const Array1$<$ T $>$ \&b)
\begin{DoxyCompactList}\small\item\em Test two arrays for equality. \end{DoxyCompactList}\item 
{\footnotesize template$<$class T $>$ }\\\hyperlink{Array1_8hpp_aca197edc851da762a556e3122580b639}{S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} bool \hyperlink{group__Array1_ga6574e0cafce126a9c34fa536e9b38776}{S\+P\+L\+::operator!=} (const Array1$<$ T $>$ \&a, const Array1$<$ T $>$ \&b)
\begin{DoxyCompactList}\small\item\em Test two arrays for inequality. \end{DoxyCompactList}\item 
\hyperlink{group__Array1_ga0329dc52323bbc6979775d165fc80735}{S\+P\+L\+::\+Array1$<$ T $>$\+::\+Array1} ()
\begin{DoxyCompactList}\small\item\em Create an empty array. \end{DoxyCompactList}\item 
\hyperlink{group__Array1_ga03dedb6ad081507706a349defc58d0f2}{S\+P\+L\+::\+Array1$<$ T $>$\+::\+Array1} (int size)
\begin{DoxyCompactList}\small\item\em Create an array of the specified size. \end{DoxyCompactList}\item 
\hyperlink{group__Array1_gad3f47c5c815cdc88370f2ef6683097d6}{S\+P\+L\+::\+Array1$<$ T $>$\+::\+Array1} (const Array1 \&a)
\begin{DoxyCompactList}\small\item\em Create a copy of an array. \end{DoxyCompactList}\item 
\hyperlink{group__Array1_gae3e833ff7fadab8d51f2ef4f8db47e16}{S\+P\+L\+::\+Array1$<$ T $>$\+::\+Array1} (int size, const T \&value)
\begin{DoxyCompactList}\small\item\em Create an array of the given size with all elements initialized to the specified value. \end{DoxyCompactList}\item 
\hyperlink{group__Array1_gad47e1f70d2926a7cd94048a99e9ed0a0}{S\+P\+L\+::\+Array1$<$ T $>$\+::$\sim$\+Array1} ()
\begin{DoxyCompactList}\small\item\em Destroy an array. \end{DoxyCompactList}\item 
Array1 \& \hyperlink{group__Array1_gacb52304faf02457c87eb274f450e7b69}{S\+P\+L\+::\+Array1$<$ T $>$\+::operator=} (const Array1 \&a)
\begin{DoxyCompactList}\small\item\em Assign one array to another. \end{DoxyCompactList}\item 
{\footnotesize template$<$class Other\+Type $>$ }\\Array1$<$ T $>$ \& \hyperlink{group__Array1_ga74d97d88e0d790f0df65ef75d9d78ccc}{S\+P\+L\+::\+Array1$<$ T $>$\+::operator=} (const Array1$<$ Other\+Type $>$ \&a)
\begin{DoxyCompactList}\small\item\em Assign an array with elements of arbitrary type to another array. \end{DoxyCompactList}\item 
Array1 \& \hyperlink{group__Array1_ga781a9c1ae5771f1eeacbd0e3f34511a0}{S\+P\+L\+::\+Array1$<$ T $>$\+::operator+=} (const Array1 \&a)
\begin{DoxyCompactList}\small\item\em Add another array (elementwise) to this array. \end{DoxyCompactList}\item 
Array1 \& \hyperlink{group__Array1_ga12c6163fc8a6d666f295504d526065f3}{S\+P\+L\+::\+Array1$<$ T $>$\+::operator-\/=} (const Array1 \&a)
\begin{DoxyCompactList}\small\item\em Subtract another array (elementwise) from this array. \end{DoxyCompactList}\item 
Array1 \& \hyperlink{group__Array1_gad241317edc9320696536736752d9f3ce}{S\+P\+L\+::\+Array1$<$ T $>$\+::operator$\ast$=} (const Array1 \&a)
\begin{DoxyCompactList}\small\item\em Multiply another array (elementwise) by this array. \end{DoxyCompactList}\item 
Array1 \& \hyperlink{group__Array1_ga88876672f2c621b95482ec592b87ea24}{S\+P\+L\+::\+Array1$<$ T $>$\+::operator/=} (const Array1 \&a)
\begin{DoxyCompactList}\small\item\em Divide this array (elementwise) by another array. \end{DoxyCompactList}\item 
Array1 \& \hyperlink{group__Array1_ga376b7afa793be5b86d81a24a7009523a}{S\+P\+L\+::\+Array1$<$ T $>$\+::operator+=} (const T \&value)
\begin{DoxyCompactList}\small\item\em Add the specified value to each element in the array. \end{DoxyCompactList}\item 
Array1 \& \hyperlink{group__Array1_ga3aa0f0810505d743f0991fe82fe8761d}{S\+P\+L\+::\+Array1$<$ T $>$\+::operator-\/=} (const T \&value)
\begin{DoxyCompactList}\small\item\em Subtract the specified value from each element in the array. \end{DoxyCompactList}\item 
Array1 \& \hyperlink{group__Array1_gad8bcb57672ac75987cf2f20b5c553f80}{S\+P\+L\+::\+Array1$<$ T $>$\+::operator$\ast$=} (const T \&value)
\begin{DoxyCompactList}\small\item\em Multiply each element in the array by the specified value. \end{DoxyCompactList}\item 
Array1 \& \hyperlink{group__Array1_gaa2d69f6f67d171915095efd52a915d9c}{S\+P\+L\+::\+Array1$<$ T $>$\+::operator/=} (const T \&value)
\begin{DoxyCompactList}\small\item\em Divide each element in the array by the specified value. \end{DoxyCompactList}\item 
int \hyperlink{group__Array1_ga40ca1a47b8dcf30c62a077731a446f68}{S\+P\+L\+::\+Array1$<$ T $>$\+::get\+Size} () const 
\begin{DoxyCompactList}\small\item\em Get the number of elements in the array. \end{DoxyCompactList}\item 
bool \hyperlink{group__Array1_ga8c3e937c2cdb761908e41e7d58314f60}{S\+P\+L\+::\+Array1$<$ T $>$\+::is\+Shared} () const 
\begin{DoxyCompactList}\small\item\em Is the data for this array shared with another array? \end{DoxyCompactList}\item 
bool \hyperlink{group__Array1_gadd22b0fdab726d8acb97d8c0d70618f9}{S\+P\+L\+::\+Array1$<$ T $>$\+::is\+Shared\+With} (const Array1 \&a) const 
\begin{DoxyCompactList}\small\item\em Is the data for this array shared with the specified array? \end{DoxyCompactList}\item 
T \& \hyperlink{group__Array1_ga7509a822795f412ccf869cc54e667139}{S\+P\+L\+::\+Array1$<$ T $>$\+::operator()} (int i)
\begin{DoxyCompactList}\small\item\em Get a mutable reference to the specified element in the array. \end{DoxyCompactList}\item 
const T \& \hyperlink{group__Array1_ga4b004d2309d7e55cc94545d7f1afefbb}{S\+P\+L\+::\+Array1$<$ T $>$\+::operator()} (int i) const 
\begin{DoxyCompactList}\small\item\em Get a const reference to the specified element in the array. \end{DoxyCompactList}\item 
Iterator \hyperlink{group__Array1_gaf0263180ec4b8c33eb1ab0f540de9525}{S\+P\+L\+::\+Array1$<$ T $>$\+::begin} ()
\begin{DoxyCompactList}\small\item\em Get a mutable iterator referring to the first element in the array. \end{DoxyCompactList}\item 
Iterator \hyperlink{group__Array1_gab92a9511b0ba27f0444f5955dd6e9882}{S\+P\+L\+::\+Array1$<$ T $>$\+::end} ()
\begin{DoxyCompactList}\small\item\em Get a mutable iterator referring to one past the last element in the array. \end{DoxyCompactList}\item 
Const\+Iterator \hyperlink{group__Array1_gab950e2f0e0f39aa3474fd7c602c6174c}{S\+P\+L\+::\+Array1$<$ T $>$\+::begin} () const 
\begin{DoxyCompactList}\small\item\em Get a const iterator referring to the first element in the array. \end{DoxyCompactList}\item 
Const\+Iterator \hyperlink{group__Array1_gab4583857ec2a6f99c7976203f23f5b3c}{S\+P\+L\+::\+Array1$<$ T $>$\+::end} () const 
\begin{DoxyCompactList}\small\item\em Get a const iterator referring to one past the last element in the array. \end{DoxyCompactList}\item 
void \hyperlink{group__Array1_ga9ab27a6b379cd8c6400a34b4403f5818}{S\+P\+L\+::\+Array1$<$ T $>$\+::resize} (int size)
\begin{DoxyCompactList}\small\item\em Change the size of the array. \end{DoxyCompactList}\item 
{\footnotesize template$<$class Input\+Iterator $>$ }\\void \hyperlink{group__Array1_ga4c1aefdad8a5faa11d7b2b89a7e1dd9e}{S\+P\+L\+::\+Array1$<$ T $>$\+::resize} (int size, Input\+Iterator data)
\begin{DoxyCompactList}\small\item\em Change the size of the array, initializing the resized array with the data obtained from the specified input iterator. \end{DoxyCompactList}\item 
T \hyperlink{group__Array1_ga7cdfb394640751daec1292d4541b457a}{S\+P\+L\+::\+Array1$<$ T $>$\+::max} () const 
\begin{DoxyCompactList}\small\item\em Get the maximum of the elements in the array. \end{DoxyCompactList}\item 
T \hyperlink{group__Array1_ga379859781345122977a941a7ad19b00b}{S\+P\+L\+::\+Array1$<$ T $>$\+::min} () const 
\begin{DoxyCompactList}\small\item\em Get the minimum of the elements in the array. \end{DoxyCompactList}\item 
T \hyperlink{group__Array1_gabaeafb94e1fcd85c57f5443312e7b24c}{S\+P\+L\+::\+Array1$<$ T $>$\+::sum} () const 
\begin{DoxyCompactList}\small\item\em Get the sum of the elements in the array. \end{DoxyCompactList}\item 
std\+::ostream \& \hyperlink{group__Array1_ga6fd14fda96835820941fca16712c9408}{S\+P\+L\+::\+Array1$<$ T $>$\+::output} (std\+::ostream \&out, int field\+Width) const 
\begin{DoxyCompactList}\small\item\em Output an array to a stream with a particular field width to be used for each element. \end{DoxyCompactList}\item 
int \hyperlink{group__Array1_gaddd2f7ebca392e2cc5e93ddbdb7e0a48}{S\+P\+L\+::\+Array1$<$ T $>$\+::load} (const char $\ast$file\+Name)
\begin{DoxyCompactList}\small\item\em Load an array from the file with the specified name. \end{DoxyCompactList}\item 
int \hyperlink{group__Array1_ga7eca1f2406a90dae0ebd236908e942fc}{S\+P\+L\+::\+Array1$<$ T $>$\+::save} (const char $\ast$file\+Name) const 
\begin{DoxyCompactList}\small\item\em Save an array to the file with the specified name. \end{DoxyCompactList}\item 
void \hyperlink{group__Array1_gadcb9523059aa3af6c82e17f2381afcd4}{S\+P\+L\+::\+Array1$<$ T $>$\+::swap} (Array1 \&a)
\begin{DoxyCompactList}\small\item\em Swap the contents of the array with the contents of another array. \end{DoxyCompactList}\item 
void \hyperlink{group__Array1_ga16e779585bc314916c69ac7f3b64590e}{S\+P\+L\+::\+Array1$<$ T $>$\+::fill} (const T \&value=T(0))
\begin{DoxyCompactList}\small\item\em Set all elements in the array to the specified value. \end{DoxyCompactList}\item 
void \hyperlink{group__Array1_gac67176ac375f6644c3b48dfe179eac23}{S\+P\+L\+::\+Array1$<$ T $>$\+::dump} (std\+::ostream \&out) const 
\begin{DoxyCompactList}\small\item\em Output information about an array to a stream for debugging. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
One-\/dimensional arrays. 



\subsection{Typedef Documentation}
\hypertarget{group__Array1_ga282718c5d07040671e9a5ee17a1c1590}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!Int\+Array1@{Int\+Array1}}
\index{Int\+Array1@{Int\+Array1}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{Int\+Array1}]{\setlength{\rightskip}{0pt plus 5cm}typedef Array1$<$int$>$ {\bf S\+P\+L\+::\+Int\+Array1}}\label{group__Array1_ga282718c5d07040671e9a5ee17a1c1590}


A one-\/dimensional array with integer elements. 

\hypertarget{group__Array1_gaf143b0253ce36dfbfb356f94fe2290b3}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!Real\+Array1@{Real\+Array1}}
\index{Real\+Array1@{Real\+Array1}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{Real\+Array1}]{\setlength{\rightskip}{0pt plus 5cm}typedef Array1$<$double$>$ {\bf S\+P\+L\+::\+Real\+Array1}}\label{group__Array1_gaf143b0253ce36dfbfb356f94fe2290b3}


A one-\/dimensional array with real elements. 



\subsection{Function Documentation}
\hypertarget{group__Array1_ga0329dc52323bbc6979775d165fc80735}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!Array1@{Array1}}
\index{Array1@{Array1}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{Array1}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::Array1 (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{group__Array1_ga0329dc52323bbc6979775d165fc80735}


Create an empty array. 

\hypertarget{group__Array1_ga03dedb6ad081507706a349defc58d0f2}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!Array1@{Array1}}
\index{Array1@{Array1}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{Array1}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::Array1 (
\begin{DoxyParamCaption}
\item[{int}]{size}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [explicit]}}\label{group__Array1_ga03dedb6ad081507706a349defc58d0f2}


Create an array of the specified size. 

\hypertarget{group__Array1_gae3e833ff7fadab8d51f2ef4f8db47e16}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!Array1@{Array1}}
\index{Array1@{Array1}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{Array1}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::Array1 (
\begin{DoxyParamCaption}
\item[{int}]{size, }
\item[{const T \&}]{value}
\end{DoxyParamCaption}
)}\label{group__Array1_gae3e833ff7fadab8d51f2ef4f8db47e16}


Create an array of the given size with all elements initialized to the specified value. 

\hypertarget{group__Array1_gad3f47c5c815cdc88370f2ef6683097d6}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!Array1@{Array1}}
\index{Array1@{Array1}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{Array1}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::Array1 (
\begin{DoxyParamCaption}
\item[{const {\bf Array1}$<$ T $>$ \&}]{a}
\end{DoxyParamCaption}
)}\label{group__Array1_gad3f47c5c815cdc88370f2ef6683097d6}


Create a copy of an array. 

\hypertarget{group__Array1_gab950e2f0e0f39aa3474fd7c602c6174c}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!begin@{begin}}
\index{begin@{begin}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{begin}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} Array1$<$ T $>$\+::Const\+Iterator {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::begin (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}\label{group__Array1_gab950e2f0e0f39aa3474fd7c602c6174c}


Get a const iterator referring to the first element in the array. 

\hypertarget{group__Array1_gaf0263180ec4b8c33eb1ab0f540de9525}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!begin@{begin}}
\index{begin@{begin}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{begin}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} Array1$<$ T $>$\+::Iterator {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::begin (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{group__Array1_gaf0263180ec4b8c33eb1ab0f540de9525}


Get a mutable iterator referring to the first element in the array. 

\hypertarget{group__Array1_gac67176ac375f6644c3b48dfe179eac23}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!dump@{dump}}
\index{dump@{dump}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{dump}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ void {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::dump (
\begin{DoxyParamCaption}
\item[{std\+::ostream \&}]{out}
\end{DoxyParamCaption}
) const}\label{group__Array1_gac67176ac375f6644c3b48dfe179eac23}


Output information about an array to a stream for debugging. 

\hypertarget{group__Array1_gab4583857ec2a6f99c7976203f23f5b3c}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!end@{end}}
\index{end@{end}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{end}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} Array1$<$ T $>$\+::Const\+Iterator {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::end (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}\label{group__Array1_gab4583857ec2a6f99c7976203f23f5b3c}


Get a const iterator referring to one past the last element in the array. 

\hypertarget{group__Array1_gab92a9511b0ba27f0444f5955dd6e9882}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!end@{end}}
\index{end@{end}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{end}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} Array1$<$ T $>$\+::Iterator {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::end (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{group__Array1_gab92a9511b0ba27f0444f5955dd6e9882}


Get a mutable iterator referring to one past the last element in the array. 

\hypertarget{group__Array1_ga16e779585bc314916c69ac7f3b64590e}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!fill@{fill}}
\index{fill@{fill}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{fill}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} void {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::fill (
\begin{DoxyParamCaption}
\item[{const T \&}]{value = {\ttfamily T(0)}}
\end{DoxyParamCaption}
)}\label{group__Array1_ga16e779585bc314916c69ac7f3b64590e}


Set all elements in the array to the specified value. 

\hypertarget{group__Array1_ga40ca1a47b8dcf30c62a077731a446f68}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!get\+Size@{get\+Size}}
\index{get\+Size@{get\+Size}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{get\+Size}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} int {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::get\+Size (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}\label{group__Array1_ga40ca1a47b8dcf30c62a077731a446f68}


Get the number of elements in the array. 

\hypertarget{group__Array1_ga8c3e937c2cdb761908e41e7d58314f60}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!is\+Shared@{is\+Shared}}
\index{is\+Shared@{is\+Shared}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{is\+Shared}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} bool {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::is\+Shared (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}\label{group__Array1_ga8c3e937c2cdb761908e41e7d58314f60}


Is the data for this array shared with another array? 

Under most normal circumstances, one should never need to call this function. In some instances, however, it might be necessary to know whether data is shared in order to write more optimal code. \hypertarget{group__Array1_gadd22b0fdab726d8acb97d8c0d70618f9}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!is\+Shared\+With@{is\+Shared\+With}}
\index{is\+Shared\+With@{is\+Shared\+With}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{is\+Shared\+With}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} bool {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::is\+Shared\+With (
\begin{DoxyParamCaption}
\item[{const {\bf Array1}$<$ T $>$ \&}]{a}
\end{DoxyParamCaption}
) const}\label{group__Array1_gadd22b0fdab726d8acb97d8c0d70618f9}


Is the data for this array shared with the specified array? 

\hypertarget{group__Array1_gaddd2f7ebca392e2cc5e93ddbdb7e0a48}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!load@{load}}
\index{load@{load}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{load}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ int {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::load (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{file\+Name}
\end{DoxyParamCaption}
)}\label{group__Array1_gaddd2f7ebca392e2cc5e93ddbdb7e0a48}


Load an array from the file with the specified name. 

\hypertarget{group__Array1_ga7cdfb394640751daec1292d4541b457a}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!max@{max}}
\index{max@{max}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{max}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} T {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::max (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}\label{group__Array1_ga7cdfb394640751daec1292d4541b457a}


Get the maximum of the elements in the array. 

The array must contain at least one element. \hypertarget{group__Array1_ga379859781345122977a941a7ad19b00b}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!min@{min}}
\index{min@{min}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{min}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} T {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::min (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}\label{group__Array1_ga379859781345122977a941a7ad19b00b}


Get the minimum of the elements in the array. 

The array must contain at least one element. \hypertarget{group__Array1_ga6574e0cafce126a9c34fa536e9b38776}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!operator"!=@{operator"!=}}
\index{operator"!=@{operator"!=}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{operator"!=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} bool S\+P\+L\+::operator!= (
\begin{DoxyParamCaption}
\item[{const {\bf Array1}$<$ T $>$ \&}]{a, }
\item[{const {\bf Array1}$<$ T $>$ \&}]{b}
\end{DoxyParamCaption}
)}\label{group__Array1_ga6574e0cafce126a9c34fa536e9b38776}


Test two arrays for inequality. 

\hypertarget{group__Array1_ga7509a822795f412ccf869cc54e667139}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!operator()@{operator()}}
\index{operator()@{operator()}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} T \& {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::operator() (
\begin{DoxyParamCaption}
\item[{int}]{i}
\end{DoxyParamCaption}
)}\label{group__Array1_ga7509a822795f412ccf869cc54e667139}


Get a mutable reference to the specified element in the array. 

\hypertarget{group__Array1_ga4b004d2309d7e55cc94545d7f1afefbb}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!operator()@{operator()}}
\index{operator()@{operator()}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} const T \& {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::operator() (
\begin{DoxyParamCaption}
\item[{int}]{i}
\end{DoxyParamCaption}
) const}\label{group__Array1_ga4b004d2309d7e55cc94545d7f1afefbb}


Get a const reference to the specified element in the array. 

\hypertarget{group__Array1_gad241317edc9320696536736752d9f3ce}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!operator$\ast$=@{operator$\ast$=}}
\index{operator$\ast$=@{operator$\ast$=}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{operator$\ast$=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} Array1$<$ T $>$ \& {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::operator$\ast$= (
\begin{DoxyParamCaption}
\item[{const {\bf Array1}$<$ T $>$ \&}]{a}
\end{DoxyParamCaption}
)}\label{group__Array1_gad241317edc9320696536736752d9f3ce}


Multiply another array (elementwise) by this array. 

\hypertarget{group__Array1_gad8bcb57672ac75987cf2f20b5c553f80}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!operator$\ast$=@{operator$\ast$=}}
\index{operator$\ast$=@{operator$\ast$=}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{operator$\ast$=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} Array1$<$ T $>$ \& {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::operator$\ast$= (
\begin{DoxyParamCaption}
\item[{const T \&}]{value}
\end{DoxyParamCaption}
)}\label{group__Array1_gad8bcb57672ac75987cf2f20b5c553f80}


Multiply each element in the array by the specified value. 

\hypertarget{group__Array1_ga781a9c1ae5771f1eeacbd0e3f34511a0}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!operator+=@{operator+=}}
\index{operator+=@{operator+=}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{operator+=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} Array1$<$ T $>$ \& {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::operator+= (
\begin{DoxyParamCaption}
\item[{const {\bf Array1}$<$ T $>$ \&}]{a}
\end{DoxyParamCaption}
)}\label{group__Array1_ga781a9c1ae5771f1eeacbd0e3f34511a0}


Add another array (elementwise) to this array. 

\hypertarget{group__Array1_ga376b7afa793be5b86d81a24a7009523a}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!operator+=@{operator+=}}
\index{operator+=@{operator+=}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{operator+=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} Array1$<$ T $>$ \& {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::operator+= (
\begin{DoxyParamCaption}
\item[{const T \&}]{value}
\end{DoxyParamCaption}
)}\label{group__Array1_ga376b7afa793be5b86d81a24a7009523a}


Add the specified value to each element in the array. 

\hypertarget{group__Array1_ga12c6163fc8a6d666f295504d526065f3}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!operator-\/=@{operator-\/=}}
\index{operator-\/=@{operator-\/=}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{operator-\/=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} Array1$<$ T $>$ \& {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::operator-\/= (
\begin{DoxyParamCaption}
\item[{const {\bf Array1}$<$ T $>$ \&}]{a}
\end{DoxyParamCaption}
)}\label{group__Array1_ga12c6163fc8a6d666f295504d526065f3}


Subtract another array (elementwise) from this array. 

\hypertarget{group__Array1_ga3aa0f0810505d743f0991fe82fe8761d}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!operator-\/=@{operator-\/=}}
\index{operator-\/=@{operator-\/=}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{operator-\/=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} Array1$<$ T $>$ \& {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::operator-\/= (
\begin{DoxyParamCaption}
\item[{const T \&}]{value}
\end{DoxyParamCaption}
)}\label{group__Array1_ga3aa0f0810505d743f0991fe82fe8761d}


Subtract the specified value from each element in the array. 

\hypertarget{group__Array1_ga88876672f2c621b95482ec592b87ea24}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!operator/=@{operator/=}}
\index{operator/=@{operator/=}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{operator/=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} Array1$<$ T $>$ \& {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::operator/= (
\begin{DoxyParamCaption}
\item[{const {\bf Array1}$<$ T $>$ \&}]{a}
\end{DoxyParamCaption}
)}\label{group__Array1_ga88876672f2c621b95482ec592b87ea24}


Divide this array (elementwise) by another array. 

\hypertarget{group__Array1_gaa2d69f6f67d171915095efd52a915d9c}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!operator/=@{operator/=}}
\index{operator/=@{operator/=}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{operator/=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} Array1$<$ T $>$ \& {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::operator/= (
\begin{DoxyParamCaption}
\item[{const T \&}]{value}
\end{DoxyParamCaption}
)}\label{group__Array1_gaa2d69f6f67d171915095efd52a915d9c}


Divide each element in the array by the specified value. 

\hypertarget{group__Array1_gaf1badc1a463f5395aaf54a495d2e82b8}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!operator$<$$<$@{operator$<$$<$}}
\index{operator$<$$<$@{operator$<$$<$}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{operator$<$$<$}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ std\+::ostream\& S\+P\+L\+::operator$<$$<$ (
\begin{DoxyParamCaption}
\item[{std\+::ostream \&}]{out, }
\item[{const {\bf Array1}$<$ T $>$ \&}]{a}
\end{DoxyParamCaption}
)}\label{group__Array1_gaf1badc1a463f5395aaf54a495d2e82b8}


Output an array to the specified stream. 

\hypertarget{group__Array1_gacb52304faf02457c87eb274f450e7b69}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!operator=@{operator=}}
\index{operator=@{operator=}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} Array1$<$ T $>$ \& {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::operator= (
\begin{DoxyParamCaption}
\item[{const {\bf Array1}$<$ T $>$ \&}]{a}
\end{DoxyParamCaption}
)}\label{group__Array1_gacb52304faf02457c87eb274f450e7b69}


Assign one array to another. 

\hypertarget{group__Array1_ga74d97d88e0d790f0df65ef75d9d78ccc}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!operator=@{operator=}}
\index{operator=@{operator=}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ template$<$class Other\+Type $>$ Array1$<$ T $>$ \& {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::operator= (
\begin{DoxyParamCaption}
\item[{const {\bf Array1}$<$ Other\+Type $>$ \&}]{a}
\end{DoxyParamCaption}
)}\label{group__Array1_ga74d97d88e0d790f0df65ef75d9d78ccc}


Assign an array with elements of arbitrary type to another array. 

\hypertarget{group__Array1_ga57177dc0b15aa4e649eabaffcfd7c1b0}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!operator==@{operator==}}
\index{operator==@{operator==}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{operator==}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ bool S\+P\+L\+::operator== (
\begin{DoxyParamCaption}
\item[{const {\bf Array1}$<$ T $>$ \&}]{a, }
\item[{const {\bf Array1}$<$ T $>$ \&}]{b}
\end{DoxyParamCaption}
)}\label{group__Array1_ga57177dc0b15aa4e649eabaffcfd7c1b0}


Test two arrays for equality. 

\hypertarget{group__Array1_ga14cfa8ad133a1b52a2c5e2750110b3e7}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!operator$>$$>$@{operator$>$$>$}}
\index{operator$>$$>$@{operator$>$$>$}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{operator$>$$>$}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ std\+::istream\& S\+P\+L\+::operator$>$$>$ (
\begin{DoxyParamCaption}
\item[{std\+::istream \&}]{in, }
\item[{{\bf Array1}$<$ T $>$ \&}]{a}
\end{DoxyParamCaption}
)}\label{group__Array1_ga14cfa8ad133a1b52a2c5e2750110b3e7}


Input an array from the specified stream. 

\hypertarget{group__Array1_ga6fd14fda96835820941fca16712c9408}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!output@{output}}
\index{output@{output}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{output}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ std\+::ostream \& {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::output (
\begin{DoxyParamCaption}
\item[{std\+::ostream \&}]{out, }
\item[{int}]{field\+Width}
\end{DoxyParamCaption}
) const}\label{group__Array1_ga6fd14fda96835820941fca16712c9408}


Output an array to a stream with a particular field width to be used for each element. 

\hypertarget{group__Array1_ga9ab27a6b379cd8c6400a34b4403f5818}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!resize@{resize}}
\index{resize@{resize}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{resize}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ void {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::resize (
\begin{DoxyParamCaption}
\item[{int}]{size}
\end{DoxyParamCaption}
)}\label{group__Array1_ga9ab27a6b379cd8c6400a34b4403f5818}


Change the size of the array. 

Effects\+: The array size is changed to the specified size. If the new size is the same as the old size, this function does nothing. \hypertarget{group__Array1_ga4c1aefdad8a5faa11d7b2b89a7e1dd9e}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!resize@{resize}}
\index{resize@{resize}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{resize}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ template$<$class Input\+Iterator $>$ void {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::resize (
\begin{DoxyParamCaption}
\item[{int}]{size, }
\item[{Input\+Iterator}]{data}
\end{DoxyParamCaption}
)}\label{group__Array1_ga4c1aefdad8a5faa11d7b2b89a7e1dd9e}


Change the size of the array, initializing the resized array with the data obtained from the specified input iterator. 

\hypertarget{group__Array1_ga7eca1f2406a90dae0ebd236908e942fc}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!save@{save}}
\index{save@{save}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{save}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ int {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::save (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{file\+Name}
\end{DoxyParamCaption}
) const}\label{group__Array1_ga7eca1f2406a90dae0ebd236908e942fc}


Save an array to the file with the specified name. 

\hypertarget{group__Array1_gabaeafb94e1fcd85c57f5443312e7b24c}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!sum@{sum}}
\index{sum@{sum}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{sum}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} T {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::sum (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}\label{group__Array1_gabaeafb94e1fcd85c57f5443312e7b24c}


Get the sum of the elements in the array. 

\hypertarget{group__Array1_gadcb9523059aa3af6c82e17f2381afcd4}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!swap@{swap}}
\index{swap@{swap}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{swap}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} void {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::swap (
\begin{DoxyParamCaption}
\item[{{\bf Array1}$<$ T $>$ \&}]{a}
\end{DoxyParamCaption}
)}\label{group__Array1_gadcb9523059aa3af6c82e17f2381afcd4}


Swap the contents of the array with the contents of another array. 

\hypertarget{group__Array1_gad47e1f70d2926a7cd94048a99e9ed0a0}{}\index{One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}!````~Array1@{$\sim$\+Array1}}
\index{````~Array1@{$\sim$\+Array1}!One-\/\+Dimensional Arrays@{One-\/\+Dimensional Arrays}}
\subsubsection[{$\sim$\+Array1}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ {\bf S\+P\+L\+\_\+\+A\+R\+R\+A\+Y1\+\_\+\+I\+N\+L\+I\+N\+E} {\bf S\+P\+L\+::\+Array1}$<$ T $>$\+::$\sim$Array1 (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{group__Array1_gad47e1f70d2926a7cd94048a99e9ed0a0}


Destroy an array. 

