<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>String-View on Pi Stack</title>
    <link>https://www.pistack.xyz/tags/string-view/</link>
    <description>Recent content in String-View on Pi Stack</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 29 Jun 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.pistack.xyz/tags/string-view/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>C&#43;&#43; String View Implementations: std::string_view vs boost::string_view vs Folly StringPiece vs Abseil string_view</title>
      <link>https://www.pistack.xyz/posts/2026-06-29-cpp-string-view-implementations-std-boost-folly-abseil/</link>
      <pubDate>Mon, 29 Jun 2026 00:00:00 +0000</pubDate>
      <guid>https://www.pistack.xyz/posts/2026-06-29-cpp-string-view-implementations-std-boost-folly-abseil/</guid>
      <description>&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;&#xA;&lt;p&gt;String views represent one of the most important additions to modern C++. The concept is elegantly simple: instead of copying strings or passing &lt;code&gt;const std::string&amp;amp;&lt;/code&gt; everywhere, a string view is a non-owning reference to a contiguous sequence of characters — essentially a &lt;code&gt;{const char* data; size_t size;}&lt;/code&gt; pair. This eliminates unnecessary copies, enables zero-cost substring operations, and dramatically simplifies APIs that work with string data from multiple sources (string literals, &lt;code&gt;std::string&lt;/code&gt;, character arrays, and substrings).&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
