stator
A math, geometry, and utility library
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
sym::detail::Add Struct Reference

#include <binary_ops.hpp>

Public Types

typedef Null left_identity
 
typedef NoIdentity left_zero
 
typedef Null right_identity
 
typedef NoIdentity right_zero
 

Static Public Member Functions

template<class L , class R >
static auto apply (const L &l, const R &r) -> STATOR_AUTORETURN(l+r)
 
static std::string repr ()
 

Static Public Attributes

static constexpr bool associative = true
 
static constexpr auto associativity = Associativity::LEFT
 
static constexpr bool commutative = true
 
static constexpr int leftBindingPower = 20
 

Detailed Description

Definition at line 109 of file binary_ops.hpp.

Member Typedef Documentation

◆ left_identity

Definition at line 114 of file binary_ops.hpp.

◆ left_zero

Definition at line 116 of file binary_ops.hpp.

◆ right_identity

Definition at line 115 of file binary_ops.hpp.

◆ right_zero

Definition at line 117 of file binary_ops.hpp.

Member Function Documentation

◆ apply()

template<class L , class R >
static auto sym::detail::Add::apply ( const L &  l,
const R &  r 
) -> STATOR_AUTORETURN(l+r)
static

◆ repr()

static std::string sym::detail::Add::repr ( )
inlinestatic

Definition at line 118 of file binary_ops.hpp.

Member Data Documentation

◆ associative

constexpr bool sym::detail::Add::associative = true
static

Definition at line 113 of file binary_ops.hpp.

◆ associativity

constexpr auto sym::detail::Add::associativity = Associativity::LEFT
static

Definition at line 111 of file binary_ops.hpp.

◆ commutative

constexpr bool sym::detail::Add::commutative = true
static

Definition at line 112 of file binary_ops.hpp.

◆ leftBindingPower

constexpr int sym::detail::Add::leftBindingPower = 20
static

Definition at line 110 of file binary_ops.hpp.


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