> For the complete documentation index, see [llms.txt](https://blog.owent.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blog.owent.net/2012/643.md).

# C++ 标准过渡期

C++11的新标准已经出台，各个编译器已经开始陆续支持。 主流编译器支持程度见(VC++, gcc, clang, intel c++等)：<http://en.cppreference.com/w/cpp/compiler_support>

但是要让C++11应用与生产环境还需时日，所以就在这里记录一下在过渡时期可能用到的一些重要功能

## smart\_ptr.h

<https://github.com/atframework/atframe_utils/blob/master/include/std/smart_ptr.h>

## functional.h

<https://github.com/atframework/atframe_utils/blob/master/include/std/functional.h>

## tuple.h

<https://github.com/atframework/atframe_utils/blob/master/include/std/tuple.h>

## array.h

<https://github.com/atframework/atframe_utils/blob/master/include/std/array.h>

## utility.h

<https://github.com/atframework/atframe_utils/blob/master/include/std/utility.h>

## foreach.hpp

<https://github.com/atframework/atframe_utils/blob/master/include/std/foreach.h>

foreach的实现参考了BOOST\_FOREACH，肯定没它的在不同编译器上的兼容性好 如果项目使用了Boost还是建议定义 **FOREACH\_WITH\_BOOST\_HPP** 宏来转向Boost里的foreach函数 如果有任何Bug欢迎 mailto: [owt5008137@live.com](mailto:owt5008137@live.com?subject=C%2B%2B%20标准过渡头文件问题反馈\&amp;body=请填入问题或反馈的内容)
