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

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

#include <tinympl/variadic/count.hpp>

Inherits tinympl::variadic::count_if< bind< equal_to, arg1, T >::template eval_t, Args... >.

Detailed Description

template<typename T, class... Args>
class tinympl::variadic::count< T, Args >

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

Parameters
Tthe type to be tested.
Args...the input sequence
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
tinympl::count

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