This is some awesome robot code

Dependencies:   mbed-rtos mbed QEI

Fork of ICRSEurobot13 by Thomas Branch

Embed: (wiki syntax)

« Back to documentation index

Incrementor< T > Class Template Reference

Incrementor< T > Class Template Reference

A simple incrementor class. More...

#include <tvmet/util/Incrementor.h>


Detailed Description

template<class T>
class tvmet::util::Incrementor< T >

A simple incrementor class.

> Incrementor.h "tvmet/util/Incrementor.h"

The start value is given at construction time. After each access the class increments the internal counter.

Example:
 #include <algorithm>

 using namespace tvmet;

 ...

 std::generate(m1.begin(), m1.end(),
 util::Incrementor<typename matrix_type::value_type>());

Specialized Incrementor class.

Definition at line 52 of file Incrementor.h.