35 #ifndef _BLAZE_UTIL_ALGORITHM_H_
36 #define _BLAZE_UTIL_ALGORITHM_H_
73 for( S *
const * it=first; it!=last; ++it )
74 if( dynamic_cast<D*>( *it ) ) ++count;
105 while( first != last && !dynamic_cast<D*>( *first ) ) ++first;
Header file for basic type definitions.
size_t polymorphicCount(S *const *first, S *const *last)
Counts the pointer to objects with dynamic type D.
Definition: Algorithm.h:68
#define BLAZE_CONSTRAINT_MUST_BE_STRICTLY_DERIVED_FROM(D, B)
Constraint on the inheritance relationship of a data type.In case D is not derived from B...
Definition: DerivedFrom.h:157
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
S *const * polymorphicFind(S *const *first, S *const *last)
Finds the next pointer to an object with dynamic type D.
Definition: Algorithm.h:101
Constraint on the inheritance relationship of a data type.