Understanding C++ Expression Templates - Angelika Langer
Understanding C++ Expression Templates - Angelika Langer
Understanding C++ Expression Templates - Angelika Langer
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
27The ClientThe code that creates the syntax tree and initiates its recursiveinterpretation:NonTerminal(Binary: Product)(x+2)*3NonTerminal(Binary: Sum)Terminal(Literal: 3)Terminal(Variable: x)Terminal(Literal: 2)double x;BinaryExpr< BinaryExpr < Variable,Literal,plus >,Literal,multiplies >expr = makeProd (makeSum (Variable(x), Literal(2)),Literal(3));cout