2
A
回答
4
我發現這個從GCC 4.4的STL:
#ifdef __GXX_EXPERIMENTAL_CXX0X__
_Vector_base(_Vector_base&& __x)
: _M_impl(__x._M_get_Tp_allocator())
{
this->_M_impl._M_start = __x._M_impl._M_start;
this->_M_impl._M_finish = __x._M_impl._M_finish;
this->_M_impl._M_end_of_storage = __x._M_impl._M_end_of_storage;
__x._M_impl._M_start = 0;
__x._M_impl._M_finish = 0;
__x._M_impl._M_end_of_storage = 0;
}
#endif
1
GCC supports rvalue references。不幸的是,the libstc++ page沒有說如果庫實現利用了。
相關問題
- 1. gcc還支持sjlj嗎?
- 2. gmock支持右值引用的解決方法
- 3. 所有的gcc版本都支持gcc的@file選項嗎?
- 4. Ruby中的STL支持
- 5. 右爲左支持Twitter的引導3
- 6. gcc插件支持何時出現?
- 7. 現在支持Google應用引擎會話嗎?
- 8. gcc支持boost :: unordered_map
- 9. AVR-GCC支持ATXMega16a4u
- 10. 使用點圖的Doxygen STL支持
- 11. BREW 3.1.5是否支持STL?
- 12. STL容器支持Windows Mobile
- 13. XmlSerializer可以支持循環引用嗎?
- 14. 現在Radiant支持Rails 3嗎?
- 15. ShareKit現在支持iOS 5嗎?
- 16. 現在是aiopg支持python 3.6嗎?
- 17. GCC是否支持C++ AMP
- 18. gcc 4.3.4是否支持unique_ptr?
- 19. gcc是否支持unique_locks?
- 20. STL:存儲引用或值?
- 21. 尋求支持STL的C++ filt
- 22. 磁盤支持的STL容器類?
- 23. 爲什麼GCC允許通過右值引用捕獲?
- 24. gcc -gdb-pretty print stl
- 25. 在linux和gcc中支持16位wchar_t
- 26. 所有的gcc編譯器都支持@FILE標誌嗎?
- 27. cygwin上的gcc 4.7.3支持C++ 11併發功能嗎?
- 28. My YouCompleteMe Vim插件不支持STL
- 29. STL排序是否支持UTF8?
- 30. 寫入時複製支持STL
「STL」 是標準模板庫;其中大部分是1998年C++標準採用的,其中一些技術後來被應用於其他組件,如iostream和字符串。今天,有些人錯誤地將整個C++標準庫(「stdlib」)或其全部模板稱爲「STL」。請參閱http://www.hpl.hp.com/techreports/95/HPL-95-11.html和http://www.sgi.com/tech/stl/ – 2010-04-21 16:52:52
@Roger:它是標準的,它是使用模板,它是一個庫。爲什麼我們挑選這些東西。 – Inverse 2010-04-22 22:59:37
@反過來:不,它不全是標準的,只有大部分被採用。另外,我相信OP並不意味着排除不是來自STL的stdlib部分。 – 2010-04-22 23:12:59