tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
minus< T > Struct Template Reference

Function object for performing subtraction. Effectively calls operator- on two instances of type T. https://en.cppreference.com/w/cpp/utility/functional/minus. More...

#include <minus.hpp>

Public Member Functions

constexpr auto operator() (T const &lhs, T const &rhs) const -> T
 Returns the difference between lhs and rhs.
 

Detailed Description

template<typename T = void>
struct etl::minus< T >

Function object for performing subtraction. Effectively calls operator- on two instances of type T. https://en.cppreference.com/w/cpp/utility/functional/minus.

Member Function Documentation

◆ operator()()

template<typename T = void>
constexpr auto operator() ( T const lhs,
T const rhs 
) const -> T
inlineconstexpr

Returns the difference between lhs and rhs.


The documentation for this struct was generated from the following file: