Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
mie::local::addsubmul< T, E > Struct Template Reference

#include <zm.h>

Inheritance diagram for mie::local::addsubmul< T, E >:
Collaboration diagram for mie::local::addsubmul< T, E >:

Public Member Functions

template<class N >
MIE_FORCE_INLINE Toperator+= (const N &rhs)
 
MIE_FORCE_INLINE Toperator-= (const T &rhs)
 
MIE_FORCE_INLINE Toperator*= (const T &rhs)
 

Friends

MIE_FORCE_INLINE friend T operator+ (const T &a, const T &b)
 
MIE_FORCE_INLINE friend T operator- (const T &a, const T &b)
 
MIE_FORCE_INLINE friend T operator* (const T &a, const T &b)
 

Detailed Description

template<class T, class E = Empty<T>>
struct mie::local::addsubmul< T, E >

Definition at line 134 of file zm.h.

Member Function Documentation

◆ operator*=()

template<class T , class E = Empty<T>>
MIE_FORCE_INLINE T & mie::local::addsubmul< T, E >::operator*= ( const T & rhs)
inline

Definition at line 138 of file zm.h.

138{ T::mul(static_cast<T&>(*this), static_cast<T&>(*this), rhs); return static_cast<T&>(*this); }
#define T(meth, val, expected)

◆ operator+=()

template<class T , class E = Empty<T>>
template<class N >
MIE_FORCE_INLINE T & mie::local::addsubmul< T, E >::operator+= ( const N & rhs)
inline

Definition at line 136 of file zm.h.

136{ T::add(static_cast<T&>(*this), static_cast<T&>(*this), rhs); return static_cast<T&>(*this); }

◆ operator-=()

template<class T , class E = Empty<T>>
MIE_FORCE_INLINE T & mie::local::addsubmul< T, E >::operator-= ( const T & rhs)
inline

Definition at line 137 of file zm.h.

137{ T::sub(static_cast<T&>(*this), static_cast<T&>(*this), rhs); return static_cast<T&>(*this); }

Friends And Related Symbol Documentation

◆ operator*

template<class T , class E = Empty<T>>
MIE_FORCE_INLINE friend T operator* ( const T & a,
const T & b )
friend

Definition at line 141 of file zm.h.

141{ T c; T::mul(c, a, b); return c; }
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181

◆ operator+

template<class T , class E = Empty<T>>
MIE_FORCE_INLINE friend T operator+ ( const T & a,
const T & b )
friend

Definition at line 139 of file zm.h.

139{ T c; T::add(c, a, b); return c; }

◆ operator-

template<class T , class E = Empty<T>>
MIE_FORCE_INLINE friend T operator- ( const T & a,
const T & b )
friend

Definition at line 140 of file zm.h.

140{ T c; T::sub(c, a, b); return c; }

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