tinympl  0.2
mini MPL library for C++11
tinympl::count< Sequence, T > Class Template Reference

Counts the number of elements in a sequence equal to a given one. More...

#include <tinympl/count.hpp>

Detailed Description

template<class Sequence, typename T>
class tinympl::count< Sequence, T >

Counts the number of elements in a sequence equal to a given one.

Parameters
SequenceThe input sequence
Tthe type to be tested.
Returns
count<...>::type is std::integral_constant<std::size_t,V> where V is the number of elements in the sequence equal to T
Note
The comparison is done with tinympl::equal_to - it can be specialized.
See also
variadic::count

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