序言
翻譯作者:dozb
原文作者:Thorsten Ottosen
出處:http://www.codeproject.com/vcpp/stl/PGIL.asp
作者提醒讀者,對這個庫的深層描述及其實作發表在2003 年10月出版的《C/C++ Users Journal 》,文章“Non-intrusive Container Initialization”. 本文所被采納的部分已經被提煉并放在boost中等待讨論(見 http://www.boost.org/). 本文中的有關枚舉範圍的部分沒有被采納。 Having a templated conversion operator can still be tricky for some compilers, but Leor Zolman has managed to port it to a wide range of compilers in his own initilization library (see http://www.bdsoft.com/tools/initutil.html ). 請注意下面的機制更簡單,通過調用
container.insert( container.end(), new_value ) )
.
詳細内容請通路:http://dozb.blogchina.com/1627498.html