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

#include <binary_ops.hpp>

Public Types

typedef NoIdentity 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 = false
 
static constexpr auto associativity = Associativity::LEFT
 
static constexpr bool commutative = false
 
static constexpr int leftBindingPower = 20
 

Detailed Description

Definition at line 123 of file binary_ops.hpp.

Member Typedef Documentation

◆ left_identity

Definition at line 128 of file binary_ops.hpp.

◆ left_zero

Definition at line 130 of file binary_ops.hpp.

◆ right_identity

Definition at line 129 of file binary_ops.hpp.

◆ right_zero

Definition at line 131 of file binary_ops.hpp.

Member Function Documentation

◆ apply()

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

◆ repr()

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

Definition at line 132 of file binary_ops.hpp.

Member Data Documentation

◆ associative

constexpr bool sym::detail::Subtract::associative = false
static

Definition at line 127 of file binary_ops.hpp.

◆ associativity

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

Definition at line 125 of file binary_ops.hpp.

◆ commutative

constexpr bool sym::detail::Subtract::commutative = false
static

Definition at line 126 of file binary_ops.hpp.

◆ leftBindingPower

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

Definition at line 124 of file binary_ops.hpp.


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