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

Counts the number of elements which satisfy a given predicate. More...

#include <tinympl/variadic/count_if.hpp>

Detailed Description

template<template< class...T > class F, class... Args>
class tinympl::variadic::count_if< F, Args >

Counts the number of elements which satisfy a given predicate.

Parameters
FThe predicate - F<T>::type::value shall be convertible to bool
Args...the input sequence
Returns
count_if<...>::type is std::integral_constant<std::size_t,V> where V is the number of elements in the sequence which satisfy the predicate F.
See also
tinympl::count_if

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