2016-11-18 18 views

回答

22

如果我們相信STL's comment,那麼是的,我們將有字符串視圖文字後綴的基礎上,我相信P0403R0

如果我理解正確的事情會sstd::string字面後綴,而std::string_view將使用sv

cout << "Hello, string_view literals!"sv << endl; 
cout << "Hello, string literals!"s << endl; 

作爲this commitsv是在C++標準草案。