mirror of https://github.com/CGAL/cgal
Functor adapting functions make_square_free and is_square_free added.
This commit is contained in:
parent
5008f425aa
commit
88092bcd9b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue