KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
kjb::Every_nth_element< T > Class Template Reference

Predicate that returns true every nth call. More...

#include <l_functors.h>

Public Types

typedef T argument_type
 
typedef bool result_type
 

Public Member Functions

 Every_nth_element (int n, int start=1)
 
bool operator() (const T &) const
 
 ~Every_nth_element ()
 

Detailed Description

template<class T>
class kjb::Every_nth_element< T >

Predicate that returns true every nth call.

Member Typedef Documentation

template<class T >
typedef T kjb::Every_nth_element< T >::argument_type
template<class T >
typedef bool kjb::Every_nth_element< T >::result_type

Constructor & Destructor Documentation

template<class T >
kjb::Every_nth_element< T >::Every_nth_element ( int  n,
int  start = 1 
)
inline
template<class T >
kjb::Every_nth_element< T >::~Every_nth_element ( )
inline

Member Function Documentation

template<class T >
bool kjb::Every_nth_element< T >::operator() ( const T &  ) const
inline

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