\section{Is\+Vector$<$ Vec\+Type $>$ Struct Template Reference}
\label{structIsVector}\index{Is\+Vector$<$ Vec\+Type $>$@{Is\+Vector$<$ Vec\+Type $>$}}


If value == true, then Vec\+Type is some sort of Armadillo vector or subview.  


\subsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
static const bool \textbf{ value} = false
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename Vec\+Type$>$\newline
struct Is\+Vector$<$ Vec\+Type $>$}

If value == true, then Vec\+Type is some sort of Armadillo vector or subview. 

You might use this struct like this\+:


\begin{DoxyCode}
\textcolor{comment}{// Only accepts VecTypes that are actually Armadillo vector types.}
\textcolor{keyword}{template}<\textcolor{keyword}{typename} VecType>
\textcolor{keywordtype}{void} Function(\textcolor{keyword}{const} VecType& argumentA,
              \textcolor{keyword}{typename} std::enable_if_t<IsVector<VecType>::value>* = 0);
\end{DoxyCode}


The use of the enable\+\_\+if\+\_\+t object allows the compiler to instantiate Function() only if Vec\+Type is one of the Armadillo vector types. It has a default argument because it isn\textquotesingle{}t meant to be used in either the function call or the function body. 

Definition at line 35 of file arma\+\_\+traits.\+hpp.



\subsection{Member Data Documentation}
\mbox{\label{structIsVector_a11ddd051208250c32dc4985abcafa86d}} 
\index{Is\+Vector@{Is\+Vector}!value@{value}}
\index{value@{value}!Is\+Vector@{Is\+Vector}}
\subsubsection{value}
{\footnotesize\ttfamily const bool value = false\hspace{0.3cm}{\ttfamily [static]}}



Definition at line 37 of file arma\+\_\+traits.\+hpp.



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
/var/www/mlpack.\+ratml.\+org/mlpack.\+org/\+\_\+src/mlpack-\/3.\+3.\+1/src/mlpack/core/util/\textbf{ arma\+\_\+traits.\+hpp}\end{DoxyCompactItemize}
