IsVector< VecType > Struct Template Reference

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

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,

The use of the enable_if_t 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 35 of file arma_traits.hpp.

Member Data Documentation

◆ value

const bool value = false
static

Definition at line 37 of file arma_traits.hpp.


The documentation for this struct was generated from the following file:
  • /home/jenkins-mlpack/mlpack.org/_src/mlpack-git/src/mlpack/core/util/arma_traits.hpp