Contains functional objects, implementing several arithmetically operations.
More...
Contains functional objects, implementing several arithmetically operations.
◆ divides
| constexpr auto sl::functional::arithmetic::divides |
|
inlineconstexpr |
Initial value:= envelop<Transform>(
[]<class TLhs, class TRhs>(TLhs&& lhs, TRhs&& rhs) -> decltype(std::forward<TLhs>(lhs) / std::forward<TRhs>(rhs))
{
return std::forward<TLhs>(lhs) / std::forward<TRhs>(rhs);
})
Determines whether two types can be used in operator / expressions.
Definition: operators.hpp:1067
Functional object which forwards the params to binary operator / and returns the result.
◆ minus
| constexpr auto sl::functional::arithmetic::minus |
|
inlineconstexpr |
Initial value:= envelop<Transform>(
[]<class TLhs, class TRhs>(TLhs&& lhs, TRhs&& rhs) -> decltype(std::forward<TLhs>(lhs) - std::forward<TRhs>(rhs))
{
return std::forward<TLhs>(lhs) - std::forward<TRhs>(rhs);
})
Determines whether two types can be used in operator - expressions.
Definition: operators.hpp:907
Functional object which forwards the params to binary operator - and returns the result.
◆ modulus
| constexpr auto sl::functional::arithmetic::modulus |
|
inlineconstexpr |
Initial value:= envelop<Transform>(
[]<class TLhs, class TRhs>(TLhs&& lhs, TRhs&& rhs) -> decltype(std::forward<TLhs>(lhs) % std::forward<TRhs>(rhs))
{
return std::forward<TLhs>(lhs) % std::forward<TRhs>(rhs);
})
Determines whether two types can be used in operator % expressions.
Definition: operators.hpp:1147
Functional object which forwards the params to binary operator % and returns the result.
◆ multiplies
| constexpr auto sl::functional::arithmetic::multiplies |
|
inlineconstexpr |
Initial value:= envelop<Transform>(
[]<class TLhs, class TRhs>(TLhs&& lhs, TRhs&& rhs) -> decltype(std::forward<TLhs>(lhs) * std::forward<TRhs>(rhs))
{
return std::forward<TLhs>(lhs) * std::forward<TRhs>(rhs);
})
Determines whether two types can be used in operator * expressions.
Definition: operators.hpp:987
Functional object which forwards the params to binary operator * and returns the result.
◆ negate
| constexpr auto sl::functional::arithmetic::negate |
|
inlineconstexpr |
Initial value:= envelop<Transform>(
[]<
class T>(T&&
value) ->
decltype(-std::forward<T>(
value))
{
return -std::forward<T>(
value);
})
Determines whether a type can be used in operator - expression.
Definition: operators.hpp:804
Checks whether the given template type is usable as value type for unique_handle types.
Definition: unique_handle.hpp:161
Functional object which forwards the param to unary operator - and returns the result.
◆ plus
| constexpr auto sl::functional::arithmetic::plus |
|
inlineconstexpr |
Initial value:= envelop<Transform>(
[]<class TLhs, class TRhs>(TLhs&& lhs, TRhs&& rhs) -> decltype(std::forward<TLhs>(lhs) + std::forward<TRhs>(rhs))
{
return std::forward<TLhs>(lhs) + std::forward<TRhs>(rhs);
})
Determines whether two types can be used in operator + expressions.
Definition: operators.hpp:827
Functional object which forwards the params to binary operator + and returns the result.