約94件1ページ目

日本語のみで絞り込む

条件を指定して検索しています。すべての条件を解除する

  • 最終更新日:1年以内
  • 2026/3/24 -std::string_view is a non-owning, read-only window into a string. It doesn't allocate memory, it doesn't copy data, and it makes your string-heavy code ...

    2026/9/21 -If the function returns a view into existing storage (e.g., a substring of an input), std::string_view is fine. If it returns a freshly composed string, return ...

    2026/1/23 -When passing std::string_view to C APIs, first convert to std::string to ensure null-termination, or verify the view was created from a null-terminated source.

    2026/7/1 -Returns a view of the substring [ pos , pos + rlen ) , where rlen is the smaller of count and size() - pos .

    2026/4/12 -Use std::string for Mutable Strings. If content changes: std::string message = "Hello"; message += " World";. string_view cannot do this. It is read-only.

    2026/3/2 -Returns a substring [pos, pos + count) . If the requested substring extends past the end of the string, i.e. the count is greater than size() - pos (e.g. if ...

    ... std::string&. We break down the "hidden malloc" problem, the O(1) substring revolution, and how string views act as a high-performance "fat pointer ...

    YouTubeLast Mile Developer

    2026/10/3 -部分文字列を取得する。 pos 番目から n 要素の文字列を返す。 引数省略時は、先頭位置( 0 番目)から全要素( npos )の文字列を返す。

    2025/11/30 -Replace all occurrences of a substring with a replacement string. String, substring (std::size_t position, std::size_t length=InvalidPos) const. Return a part ...

    2026/4/18 -Concluding inline constexpr std::string_view is the optimal way to declare a global constant string in C++20 is debatable. Actually using const char[] has the ...