Public Member Functions | Public Attributes | List of all members
arttest::IntArray< N > Struct Template Reference

#include <ToyProducts.h>

Public Member Functions

 IntArray ()=default
 
void aggregate (IntArray const &right)
 

Public Attributes

std::array< int, N > arr {{}}
 

Detailed Description

template<std::size_t N>
struct arttest::IntArray< N >

Definition at line 237 of file ToyProducts.h.

Constructor & Destructor Documentation

template<std::size_t N>
arttest::IntArray< N >::IntArray ( )
default

Member Function Documentation

template<std::size_t N>
void arttest::IntArray< N >::aggregate ( IntArray< N > const &  right)
inline

Definition at line 241 of file ToyProducts.h.

242  {
243  for (std::size_t i{}; i < N; ++i) {
244  arr[i] += right.arr[i];
245  }
246  }
std::array< int, N > arr
Definition: ToyProducts.h:239

Member Data Documentation

template<std::size_t N>
std::array<int, N> arttest::IntArray< N >::arr {{}}

Definition at line 239 of file ToyProducts.h.


The documentation for this struct was generated from the following file: