Composition

template <
  class LHS,
  class RHS>
class Composition;
Template parameters
LHS Type of left hand side operand
RHS Type of right hand side operand

Represents the mathematical expression:

\[\text{LHS} \circ \text{RHS} \]

where LHS and RHS are types which represent, respectively, functions $f : B \rightarrow C $ and $ g : A \rightarrow B $ . Then their composition at each point $ x $ is defined by:

\[ (f \circ g)(x) := f(g(x)) \ . \]