教程和介绍给C ++防爆pression模板 [英] Tutorials and Introductions to C++ Expression Templates

查看:192
本文介绍了教程和介绍给C ++防爆pression模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么好介绍的创造C ++前pression模板系统?我想前preSS算术用户定义类型,同时避免了临时值(可能是大),并学习如何做到这一点,而不是直接将现有的库。

What are good introductions to the creation of C++ expression template systems? I would like to express arithmetic on user defined types while avoiding temporary values (which may be large), and to learn how to do this directly rather than applying an existing library.

我发现托德Veldhuizen的原始纸并从的Josuttis C ++模板书,并通过了一篇文章<一个href=\"http://www.angelikalanger.com/Articles/Cuj/Ex$p$pssionTemplates/Ex$p$pssionTemplates.htm\">Kreft &安培;兰格的。它在现代C ++ 课程讲座6所提到的,再参考Josuttis.The POOMA库背景很好地介绍了前pression模板。

I have found Todd Veldhuizen's original paper and an example from the Josuttis C++ Templates book, and an article by Kreft & Langer. It is mentioned in Lecture 6 of a course on Modern C++, referring back to Josuttis.The POOMA library background introduces expression templates nicely.

我要寻找的简单的,清晰的论述。

I am looking for simple, clear expositions.

推荐答案

您应该得到的 C ++模板副本:完全指南

You should get a copy of C++ Templates: The Complete Guide.

在code例子你链接没有相关文字,这是相当有帮助的(对前pression模板章22页长)。如果没有文字,所有你必须​​无任何意见或解释,它做什么,以及如何和code为什么这样做。

The code example to which you link doesn't have the accompanying text, which is quite helpful (the chapter on expression templates is 22 pages long). Without the text, all you have is code without any comments or explanation as to what it does and how and why it does it.

这篇关于教程和介绍给C ++防爆pression模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆