---
name: "IsVector"
section: "3"
platform: "linux"
package: "mlpack-doc"
version: "1.0.10-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/IsVector"
---

# IsVector(3)

If value == true, then VecType is some sort of Armadillo vector or subview.

## NAME

IsVector\< VecType \> -

If value == true, then VecType is some sort of Armadillo vector or subview.

## SYNOPSIS

### Static Public Attributes

static const bool **value** = false\

## Detailed Description

### template\<typename VecType\>struct IsVector\< VecType \>

If value == true, then VecType is some sort of Armadillo vector or subview.

You might use this struct like this:

```
// Only accepts VecTypes that are actually Armadillo vector types.
template<typename VecType>
void Function(const VecType& argumentA,
              typename boost::enable_if<IsVector<VecType> >* = 0);
```

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

Definition at line 45 of file arma\_traits.hpp.

## Member Data Documentation

### template\<typename VecType \> const bool IsVector\< VecType \>::value = false` [static]`

Definition at line 47 of file arma\_traits.hpp.

## Author

Generated automatically by Doxygen for MLPACK from the source code.
