首页> 外文期刊>C - C++ Users Journal >Using Chains to Free Library Code
【24h】

Using Chains to Free Library Code

机译:使用链来释放库代码

获取原文
获取原文并翻译 | 示例
获取外文期刊封面目录资料

摘要

Library writers produce code that can be applied to any number of problems. It is not the role of the library to anticipate all of the ways in which it will be used, but instead to liberate programmers to use the library for any appropriate application. Both Loki and Boost are excellent examples of this principle. They can be used to solve problems that their authors never imagined. But occasionally, library writers find that C++ syntax limits the application of their library. A function has to be overloaded for a variable number of parameters, or a template needs to be specialized for an indeterminate number of types. When faced with these challenges, you're forced to choose an arbitrary limit.
机译:图书馆作者编写的代码可以应用于许多问题。库的作用不是预期将使用该库的所有方式,而是解放程序员以将库用于任何适当的应用程序。 Loki和Boost都是该原理的出色示例。它们可以用来解决作者未曾想到的问题。但是偶尔,库作者会发现C ++语法限制了其库的应用。函数必须重载以获取可变数量的参数,或者模板需要专门用于不确定数量的类型。面对这些挑战,您不得不选择任意限制。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号