add impl of Is_zero, not using default

This commit is contained in:
Michael Hemmer 2009-08-17 07:29:36 +00:00
parent 3923e6a15d
commit fc9fdd585c
1 changed files with 9 additions and 0 deletions

View File

@ -101,6 +101,15 @@ class Polynomial_algebraic_structure_traits_base< POLY,
return POLY( x.unit_part() );
}
};
class Is_zero
: public std::unary_function< POLY, bool > {
public:
bool operator()( const POLY& x ) const {
return x.is_zero();
}
};
};
// Extend to the case that the coefficient range is a IntegralDomain (with div)