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

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

#include <plus.hpp>

Public Member Functions

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

Detailed Description

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

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

Member Function Documentation

◆ operator()()

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

Returns the sum of lhs and rhs.


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