Logo MTL4
Public Types | Public Member Functions
algebra::Monoid< Operation, Element > Struct Template Reference

Concept Monoid. More...

#include <algebraic_concepts.hpp>

Inheritance diagram for algebra::Monoid< Operation, Element >:
Inheritance graph
[legend]
Collaboration diagram for algebra::Monoid< Operation, Element >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef associated_type identity_result_type
 Associated type; if not defined in concept_map automatically detected as result of identity.

Public Member Functions

identity_result_type identity (Operation, Element)
 Identity element of Operation.

Detailed Description

template<typename Operation, typename Element>
struct algebra::Monoid< Operation, Element >

Concept Monoid.

Parameters:
OperationA functor implementing a binary operation
ElementThe type upon the binary operation is defined
Refinement of:
Notation:
op Object of type Operation
x Object of type Element
Invariant:
Neutrality from right op( x, identity(op, x) ) == x
Neutrality from left op( identity(op, x), x ) == x

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


algebra::Monoid< Operation, Element > Struct Template Reference -- MTL 4 -- Peter Gottschling and Andrew Lumsdaine -- Gen. with rev. 7542 on Sat Aug 11 2012 by doxygen 1.7.6.1 -- © 2010 by SimuNova UG.