首页> 外文期刊>Windows Developer Magazine >Adapting Win32 Enumeration APIs to STL Iterator Concepts
【24h】

Adapting Win32 Enumeration APIs to STL Iterator Concepts

机译:使Win32枚举API适应STL迭代器概念

获取原文
获取原文并翻译 | 示例
       

摘要

This article has described some of the ideas represented in the STL Sequence and Iterator concepts. It has also highlighted some issues that are important when implementing your own STL-compliant sequences and iterators, and has illustrated these issues by presenting two enumeration API- adapting sequence classes, findfile_sequence, and reg_key_sequence, and their supporting classes. I've endeavored to show that the implementation of correct, robust, and efficient sequences and iterators, though involved, is not as complex as might be expected. Hopefully, I've demonstrated that using such classes is straightforward indeed, especially so given that they can be used with standard algorithms and functionals, as shown in the example programs included with this article. All the WinSTL classes, and supporting STLSoft code, are available online, along with an increasing number of other classes, algorithms, and functionals. Furthermore, the libraries are open to expansion for anyone who wishes to submit their own classes.
机译:本文介绍了STL序列和迭代器概念中表示的一些想法。它还强调了一些在实现自己的符合STL的序列和迭代器时很重要的问题,并通过介绍两个适用于枚举API的枚举API序列类(findfile_sequence和reg_key_sequence)及其支持类来说明了这些问题。我尽力证明正确,健壮和有效的序列和迭代器的实现尽管涉及到,但并没有预期的那么复杂。希望我已经证明了使用此类确实很简单,尤其是考虑到它们可以与标准算法和功能一起使用,如本文附带的示例程序所示。所有WinSTL类以及支持STLSoft的代码都可以在线获取,以及越来越多的其他类,算法和功能。此外,图书馆对希望提交自己的课程的任何人开放。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号