Functor adapting functions make_square_free and is_square_free added.

This commit is contained in:
Sebastian Limbach 2008-04-04 11:51:52 +00:00
parent 5008f425aa
commit 88092bcd9b
1 changed files with 17 additions and 0 deletions

View File

@ -1425,6 +1425,23 @@ public:
};
// functor adapting functions for some functors (undocumented)
namespace CGALi {
template< class Polynomial >
Polynomial make_square_free( const Polynomial& p ) {
return typename CGAL::Polynomial_traits_d< Polynomial>::
Make_square_free()( p );
}
template< class Polynomial >
bool is_square_free( const Polynomial& p ) {
return typename CGAL::Polynomial_traits_d< Polynomial>::
Is_square_free()( p );
}
}
CGAL_END_NAMESPACE
#endif // CGAL_POLYNOMIAL_TRAITS_D_H