cgal/Algebraic_foundations/doc/Algebraic_foundations/Concepts/RealEmbeddableTraits--Abs.h

44 lines
604 B
C++

/*!
\ingroup PkgAlgebraicFoundationsConcepts
\cgalconcept
`AdaptableUnaryFunction` computes the absolute value of a number.
\refines ::AdaptableUnaryFunction
\sa ::RealEmbeddableTraits
*/
class RealEmbeddableTraits::Abs {
public:
/// \name Types
/// @{
/*!
Is `RealEmbeddableTraits::Type`.
*/
typedef Hidden_type result_type;
/*!
Is `RealEmbeddableTraits::Type`.
*/
typedef Hidden_type argument_type;
/// @}
/// \name Operations
/// @{
/*!
computes the absolute value of \f$ x\f$.
*/
result_type operator()(argument_type x);
/// @}
}; /* end RealEmbeddableTraits::Abs */