libsemigroups  v3.0.0
C++ library for semigroups and monoids
Loading...
Searching...
No Matches
IntegerOne< Scalar >
template<typename Scalar>
struct libsemigroups::IntegerOne< Scalar >

Defined in matrix.hpp.

This is a stateless struct with a single call operator of signature: Scalar operator()() const noexcept which returns 1; representing the multiplicative identity of the integer semiring.

Public Member Functions

constexpr Scalar operator() () const noexcept
 Call operator returning the integer 1.
 

Member Function Documentation

◆ operator()()

template<typename Scalar>
Scalar operator() ( ) const
inlineconstexprnoexcept

This function returns the multiplicative identity of the ring of integers (i.e. the integer 1).

Returns
The integer 1.
Exceptions
This function is noexcept and is guaranteed never to throw.

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