エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
An informal comparison of the three major implementations of std::string - The Old New Thing
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
An informal comparison of the three major implementations of std::string - The Old New Thing
[Note: This article has been updated since original publication.] We saw some time ago that the t... [Note: This article has been updated since original publication.] We saw some time ago that the three major implementations of std::string are all quite different. To summarize: // gcc struct string { char* ptr; size_t size; union { size_t capacity; char buf[16]; }; bool is_large() { return ptr != buf; } auto data() { return ptr; } auto size() { return size; } auto capacity() { return is_large() ?