blob: caa4c8494e0c08666f761e98ee916faa3a89ef76 [file]
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.9.8" xml:lang="en-US">
<compounddef id="struct__like__set__test_8cc" kind="file" language="C++">
<compoundname>struct_like_set_test.cc</compoundname>
<includes refid="struct__like__set_8h" local="yes">iceberg/util/struct_like_set.h</includes>
<includes local="no">limits</includes>
<includes local="no">string</includes>
<includes local="no">vector</includes>
<includes local="no">gtest/gtest.h</includes>
<includes refid="schema__field_8h" local="yes">iceberg/schema_field.h</includes>
<includes refid="matchers_8h" local="yes">iceberg/test/matchers.h</includes>
<includes refid="type_8h" local="yes">iceberg/type.h</includes>
<incdepgraph>
<node id="32">
<label>iceberg/exception.h</label>
<link refid="exception_8h"/>
<childnode refid="33" relation="include">
</childnode>
<childnode refid="7" relation="include">
</childnode>
</node>
<node id="17">
<label>iceberg/expression/literal.h</label>
<link refid="literal_8h_source"/>
<childnode refid="18" relation="include">
</childnode>
<childnode refid="3" relation="include">
</childnode>
<childnode refid="11" relation="include">
</childnode>
<childnode refid="16" relation="include">
</childnode>
<childnode refid="6" relation="include">
</childnode>
<childnode refid="7" relation="include">
</childnode>
<childnode refid="8" relation="include">
</childnode>
<childnode refid="19" relation="include">
</childnode>
<childnode refid="34" relation="include">
</childnode>
<childnode refid="26" relation="include">
</childnode>
<childnode refid="37" relation="include">
</childnode>
<childnode refid="38" relation="include">
</childnode>
</node>
<node id="7">
<label>iceberg/iceberg_export.h</label>
<link refid="iceberg__export_8h_source"/>
</node>
<node id="8">
<label>iceberg/result.h</label>
<link refid="result_8h_source"/>
<childnode refid="9" relation="include">
</childnode>
<childnode refid="10" relation="include">
</childnode>
<childnode refid="11" relation="include">
</childnode>
<childnode refid="7" relation="include">
</childnode>
</node>
<node id="12">
<label>iceberg/row/struct_like.h</label>
<link refid="struct__like_8h"/>
<childnode refid="13" relation="include">
</childnode>
<childnode refid="3" relation="include">
</childnode>
<childnode refid="14" relation="include">
</childnode>
<childnode refid="15" relation="include">
</childnode>
<childnode refid="16" relation="include">
</childnode>
<childnode refid="17" relation="include">
</childnode>
<childnode refid="8" relation="include">
</childnode>
<childnode refid="25" relation="include">
</childnode>
<childnode refid="34" relation="include">
</childnode>
</node>
<node id="24">
<label>iceberg/schema_field.h</label>
<link refid="schema__field_8h"/>
<childnode refid="21" relation="include">
</childnode>
<childnode refid="3" relation="include">
</childnode>
<childnode refid="11" relation="include">
</childnode>
<childnode refid="15" relation="include">
</childnode>
<childnode refid="7" relation="include">
</childnode>
<childnode refid="8" relation="include">
</childnode>
<childnode refid="25" relation="include">
</childnode>
<childnode refid="26" relation="include">
</childnode>
</node>
<node id="41">
<label>iceberg/test/matchers.h</label>
<link refid="matchers_8h_source"/>
<childnode refid="42" relation="include">
</childnode>
<childnode refid="40" relation="include">
</childnode>
<childnode refid="8" relation="include">
</childnode>
<childnode refid="30" relation="include">
</childnode>
</node>
<node id="1">
<label>iceberg/test/struct_like_set_test.cc</label>
<link refid="struct__like__set__test_8cc"/>
<childnode refid="2" relation="include">
</childnode>
<childnode refid="39" relation="include">
</childnode>
<childnode refid="11" relation="include">
</childnode>
<childnode refid="6" relation="include">
</childnode>
<childnode refid="40" relation="include">
</childnode>
<childnode refid="24" relation="include">
</childnode>
<childnode refid="41" relation="include">
</childnode>
<childnode refid="19" relation="include">
</childnode>
</node>
<node id="19">
<label>iceberg/type.h</label>
<link refid="type_8h"/>
<childnode refid="20" relation="include">
</childnode>
<childnode refid="21" relation="include">
</childnode>
<childnode refid="3" relation="include">
</childnode>
<childnode refid="22" relation="include">
</childnode>
<childnode refid="14" relation="include">
</childnode>
<childnode refid="11" relation="include">
</childnode>
<childnode refid="23" relation="include">
</childnode>
<childnode refid="6" relation="include">
</childnode>
<childnode refid="7" relation="include">
</childnode>
<childnode refid="8" relation="include">
</childnode>
<childnode refid="24" relation="include">
</childnode>
<childnode refid="26" relation="include">
</childnode>
<childnode refid="27" relation="include">
</childnode>
</node>
<node id="25">
<label>iceberg/type_fwd.h</label>
<link refid="type__fwd_8h"/>
</node>
<node id="34">
<label>iceberg/util/decimal.h</label>
<link refid="decimal_8h"/>
<childnode refid="20" relation="include">
</childnode>
<childnode refid="18" relation="include">
</childnode>
<childnode refid="21" relation="include">
</childnode>
<childnode refid="35" relation="include">
</childnode>
<childnode refid="11" relation="include">
</childnode>
<childnode refid="15" relation="include">
</childnode>
<childnode refid="36" relation="include">
</childnode>
<childnode refid="6" relation="include">
</childnode>
<childnode refid="7" relation="include">
</childnode>
<childnode refid="8" relation="include">
</childnode>
<childnode refid="26" relation="include">
</childnode>
<childnode refid="37" relation="include">
</childnode>
</node>
<node id="26">
<label>iceberg/util/formattable.h</label>
<link refid="formattable_8h"/>
<childnode refid="11" relation="include">
</childnode>
<childnode refid="7" relation="include">
</childnode>
</node>
<node id="37">
<label>iceberg/util/int128.h</label>
<link refid="int128_8h"/>
</node>
<node id="27">
<label>iceberg/util/lazy.h</label>
<link refid="lazy_8h"/>
<childnode refid="28" relation="include">
</childnode>
<childnode refid="13" relation="include">
</childnode>
<childnode refid="29" relation="include">
</childnode>
<childnode refid="8" relation="include">
</childnode>
<childnode refid="30" relation="include">
</childnode>
</node>
<node id="30">
<label>iceberg/util/macros.h</label>
<link refid="macros_8h_source"/>
<childnode refid="31" relation="include">
</childnode>
<childnode refid="32" relation="include">
</childnode>
<childnode refid="8" relation="include">
</childnode>
</node>
<node id="2">
<label>iceberg/util/struct_like_set.h</label>
<link refid="struct__like__set_8h"/>
<childnode refid="3" relation="include">
</childnode>
<childnode refid="4" relation="include">
</childnode>
<childnode refid="5" relation="include">
</childnode>
<childnode refid="6" relation="include">
</childnode>
<childnode refid="7" relation="include">
</childnode>
<childnode refid="8" relation="include">
</childnode>
<childnode refid="12" relation="include">
</childnode>
<childnode refid="25" relation="include">
</childnode>
</node>
<node id="38">
<label>iceberg/util/uuid.h</label>
<link refid="uuid_8h"/>
<childnode refid="20" relation="include">
</childnode>
<childnode refid="21" relation="include">
</childnode>
<childnode refid="14" relation="include">
</childnode>
<childnode refid="15" relation="include">
</childnode>
<childnode refid="7" relation="include">
</childnode>
<childnode refid="8" relation="include">
</childnode>
<childnode refid="26" relation="include">
</childnode>
</node>
<node id="20">
<label>array</label>
</node>
<node id="31">
<label>cassert</label>
</node>
<node id="18">
<label>compare</label>
</node>
<node id="28">
<label>concepts</label>
</node>
<node id="21">
<label>cstdint</label>
</node>
<node id="9">
<label>expected</label>
</node>
<node id="10">
<label>format</label>
</node>
<node id="13">
<label>functional</label>
</node>
<node id="42">
<label>gmock/gmock.h</label>
</node>
<node id="40">
<label>gtest/gtest.h</label>
</node>
<node id="35">
<label>iosfwd</label>
</node>
<node id="39">
<label>limits</label>
</node>
<node id="3">
<label>memory</label>
</node>
<node id="4">
<label>memory_resource</label>
</node>
<node id="29">
<label>mutex</label>
</node>
<node id="22">
<label>optional</label>
</node>
<node id="14">
<label>span</label>
</node>
<node id="33">
<label>stdexcept</label>
</node>
<node id="11">
<label>string</label>
</node>
<node id="15">
<label>string_view</label>
</node>
<node id="36">
<label>type_traits</label>
</node>
<node id="23">
<label>unordered_map</label>
</node>
<node id="5">
<label>unordered_set</label>
</node>
<node id="16">
<label>variant</label>
</node>
<node id="6">
<label>vector</label>
</node>
</incdepgraph>
<innerclass refid="classiceberg_1_1SimpleStructLike" prot="public">iceberg::SimpleStructLike</innerclass>
<innerclass refid="classiceberg_1_1SimpleArrayLike" prot="public">iceberg::SimpleArrayLike</innerclass>
<innerclass refid="classiceberg_1_1SimpleMapLike" prot="public">iceberg::SimpleMapLike</innerclass>
<innerclass refid="classiceberg_1_1FailingStructLike" prot="public">iceberg::FailingStructLike</innerclass>
<innernamespace refid="namespaceiceberg">iceberg</innernamespace>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<programlisting>
<codeline lineno="1"><highlight class="comment">/*</highlight></codeline>
<codeline lineno="2"><highlight class="comment"><sp/>*<sp/>Licensed<sp/>to<sp/>the<sp/>Apache<sp/>Software<sp/>Foundation<sp/>(ASF)<sp/>under<sp/>one</highlight></codeline>
<codeline lineno="3"><highlight class="comment"><sp/>*<sp/>or<sp/>more<sp/>contributor<sp/>license<sp/>agreements.<sp/><sp/>See<sp/>the<sp/>NOTICE<sp/>file</highlight></codeline>
<codeline lineno="4"><highlight class="comment"><sp/>*<sp/>distributed<sp/>with<sp/>this<sp/>work<sp/>for<sp/>additional<sp/>information</highlight></codeline>
<codeline lineno="5"><highlight class="comment"><sp/>*<sp/>regarding<sp/>copyright<sp/>ownership.<sp/><sp/>The<sp/>ASF<sp/>licenses<sp/>this<sp/>file</highlight></codeline>
<codeline lineno="6"><highlight class="comment"><sp/>*<sp/>to<sp/>you<sp/>under<sp/>the<sp/>Apache<sp/>License,<sp/>Version<sp/>2.0<sp/>(the</highlight></codeline>
<codeline lineno="7"><highlight class="comment"><sp/>*<sp/>&quot;License&quot;);<sp/>you<sp/>may<sp/>not<sp/>use<sp/>this<sp/>file<sp/>except<sp/>in<sp/>compliance</highlight></codeline>
<codeline lineno="8"><highlight class="comment"><sp/>*<sp/>with<sp/>the<sp/>License.<sp/><sp/>You<sp/>may<sp/>obtain<sp/>a<sp/>copy<sp/>of<sp/>the<sp/>License<sp/>at</highlight></codeline>
<codeline lineno="9"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="10"><highlight class="comment"><sp/>*<sp/><sp/><sp/>http://www.apache.org/licenses/LICENSE-2.0</highlight></codeline>
<codeline lineno="11"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="12"><highlight class="comment"><sp/>*<sp/>Unless<sp/>required<sp/>by<sp/>applicable<sp/>law<sp/>or<sp/>agreed<sp/>to<sp/>in<sp/>writing,</highlight></codeline>
<codeline lineno="13"><highlight class="comment"><sp/>*<sp/>software<sp/>distributed<sp/>under<sp/>the<sp/>License<sp/>is<sp/>distributed<sp/>on<sp/>an</highlight></codeline>
<codeline lineno="14"><highlight class="comment"><sp/>*<sp/>&quot;AS<sp/>IS&quot;<sp/>BASIS,<sp/>WITHOUT<sp/>WARRANTIES<sp/>OR<sp/>CONDITIONS<sp/>OF<sp/>ANY</highlight></codeline>
<codeline lineno="15"><highlight class="comment"><sp/>*<sp/>KIND,<sp/>either<sp/>express<sp/>or<sp/>implied.<sp/><sp/>See<sp/>the<sp/>License<sp/>for<sp/>the</highlight></codeline>
<codeline lineno="16"><highlight class="comment"><sp/>*<sp/>specific<sp/>language<sp/>governing<sp/>permissions<sp/>and<sp/>limitations</highlight></codeline>
<codeline lineno="17"><highlight class="comment"><sp/>*<sp/>under<sp/>the<sp/>License.</highlight></codeline>
<codeline lineno="18"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="19"><highlight class="normal"></highlight></codeline>
<codeline lineno="20"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;<ref refid="struct__like__set_8h" kindref="compound">iceberg/util/struct_like_set.h</ref>&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="21"><highlight class="normal"></highlight></codeline>
<codeline lineno="22"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;limits&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="23"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;string&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="24"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;vector&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="25"><highlight class="normal"></highlight></codeline>
<codeline lineno="26"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;gtest/gtest.h&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="27"><highlight class="normal"></highlight></codeline>
<codeline lineno="28"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;<ref refid="schema__field_8h" kindref="compound">iceberg/schema_field.h</ref>&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="29"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;iceberg/test/matchers.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="30"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;<ref refid="type_8h" kindref="compound">iceberg/type.h</ref>&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="31"><highlight class="normal"></highlight></codeline>
<codeline lineno="32"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">iceberg<sp/>{</highlight></codeline>
<codeline lineno="33"><highlight class="normal"></highlight></codeline>
<codeline lineno="34" refid="classiceberg_1_1SimpleStructLike" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classiceberg_1_1SimpleStructLike" kindref="compound">SimpleStructLike</ref><sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1StructLike" kindref="compound">StructLike</ref><sp/>{</highlight></codeline>
<codeline lineno="35"><highlight class="normal"><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="36"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">explicit</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1SimpleStructLike" kindref="compound">SimpleStructLike</ref>(std::vector&lt;Scalar&gt;<sp/>fields)<sp/>:<sp/>fields_(std::move(fields))<sp/>{}</highlight></codeline>
<codeline lineno="37"><highlight class="normal"></highlight></codeline>
<codeline lineno="38"><highlight class="normal"><sp/><sp/>Result&lt;Scalar&gt;<sp/><ref refid="classiceberg_1_1SimpleStructLike_1a09f4aabd43b411e4ae0f5f8c396bbb7d" kindref="member">GetField</ref>(</highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"><sp/>pos)</highlight><highlight class="keyword"><sp/>const<sp/>override<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="39"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(pos<sp/>&gt;=<sp/>fields_.size())<sp/>{</highlight></codeline>
<codeline lineno="40"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NotFound(</highlight><highlight class="stringliteral">&quot;field<sp/>position<sp/>{}<sp/>out<sp/>of<sp/>range<sp/>[0,<sp/>{})&quot;</highlight><highlight class="normal">,<sp/>pos,<sp/>fields_.size());</highlight></codeline>
<codeline lineno="41"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="42"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>fields_[pos];</highlight></codeline>
<codeline lineno="43"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="44"><highlight class="normal"></highlight></codeline>
<codeline lineno="45"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1SimpleStructLike_1aa0e975871f029d1cde3892b2c53148c0" kindref="member">num_fields</ref>()</highlight><highlight class="keyword"><sp/>const<sp/>override<sp/></highlight><highlight class="normal">{<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>fields_.size();<sp/>}</highlight></codeline>
<codeline lineno="46"><highlight class="normal"></highlight></codeline>
<codeline lineno="47"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>SetField(</highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"><sp/>pos,<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref><sp/>value)<sp/>{<sp/>fields_[pos]<sp/>=<sp/>std::move(value);<sp/>}</highlight></codeline>
<codeline lineno="48"><highlight class="normal"></highlight></codeline>
<codeline lineno="49"><highlight class="normal"><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="50"><highlight class="normal"><sp/><sp/>std::vector&lt;Scalar&gt;<sp/>fields_;</highlight></codeline>
<codeline lineno="51"><highlight class="normal">};</highlight></codeline>
<codeline lineno="52"><highlight class="normal"></highlight></codeline>
<codeline lineno="53" refid="classiceberg_1_1SimpleArrayLike" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classiceberg_1_1SimpleArrayLike" kindref="compound">SimpleArrayLike</ref><sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1ArrayLike" kindref="compound">ArrayLike</ref><sp/>{</highlight></codeline>
<codeline lineno="54"><highlight class="normal"><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="55"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">explicit</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1SimpleArrayLike" kindref="compound">SimpleArrayLike</ref>(std::vector&lt;Scalar&gt;<sp/>elements)</highlight></codeline>
<codeline lineno="56"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>:<sp/>elements_(std::move(elements))<sp/>{}</highlight></codeline>
<codeline lineno="57"><highlight class="normal"></highlight></codeline>
<codeline lineno="58"><highlight class="normal"><sp/><sp/>Result&lt;Scalar&gt;<sp/><ref refid="classiceberg_1_1SimpleArrayLike_1ab9401de6f9f36c3be033b074c07b0529" kindref="member">GetElement</ref>(</highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"><sp/>pos)</highlight><highlight class="keyword"><sp/>const<sp/>override<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="59"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(pos<sp/>&gt;=<sp/>elements_.size())<sp/>{</highlight></codeline>
<codeline lineno="60"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NotFound(</highlight><highlight class="stringliteral">&quot;element<sp/>position<sp/>{}<sp/>out<sp/>of<sp/>range<sp/>[0,<sp/>{})&quot;</highlight><highlight class="normal">,<sp/>pos,<sp/>elements_.size());</highlight></codeline>
<codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="62"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>elements_[pos];</highlight></codeline>
<codeline lineno="63"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="64"><highlight class="normal"></highlight></codeline>
<codeline lineno="65"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1SimpleArrayLike_1ae6b49eb926d60bf5157194bdf17a2650" kindref="member">size</ref>()</highlight><highlight class="keyword"><sp/>const<sp/>override<sp/></highlight><highlight class="normal">{<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>elements_.size();<sp/>}</highlight></codeline>
<codeline lineno="66"><highlight class="normal"></highlight></codeline>
<codeline lineno="67"><highlight class="normal"><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="68"><highlight class="normal"><sp/><sp/>std::vector&lt;Scalar&gt;<sp/>elements_;</highlight></codeline>
<codeline lineno="69"><highlight class="normal">};</highlight></codeline>
<codeline lineno="70"><highlight class="normal"></highlight></codeline>
<codeline lineno="71" refid="classiceberg_1_1SimpleMapLike" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classiceberg_1_1SimpleMapLike" kindref="compound">SimpleMapLike</ref><sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1MapLike" kindref="compound">MapLike</ref><sp/>{</highlight></codeline>
<codeline lineno="72"><highlight class="normal"><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="73"><highlight class="normal"><sp/><sp/><ref refid="classiceberg_1_1SimpleMapLike" kindref="compound">SimpleMapLike</ref>(std::vector&lt;Scalar&gt;<sp/>keys,<sp/>std::vector&lt;Scalar&gt;<sp/>values)</highlight></codeline>
<codeline lineno="74"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>:<sp/>keys_(std::move(keys)),<sp/>values_(std::move(values))<sp/>{}</highlight></codeline>
<codeline lineno="75"><highlight class="normal"></highlight></codeline>
<codeline lineno="76"><highlight class="normal"><sp/><sp/>Result&lt;Scalar&gt;<sp/><ref refid="classiceberg_1_1SimpleMapLike_1a768c6ce2e4bbbbbfcfee36b3bf09578d" kindref="member">GetKey</ref>(</highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"><sp/>pos)</highlight><highlight class="keyword"><sp/>const<sp/>override<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="77"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(pos<sp/>&gt;=<sp/>keys_.size())<sp/>{</highlight></codeline>
<codeline lineno="78"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NotFound(</highlight><highlight class="stringliteral">&quot;key<sp/>position<sp/>{}<sp/>out<sp/>of<sp/>range<sp/>[0,<sp/>{})&quot;</highlight><highlight class="normal">,<sp/>pos,<sp/>keys_.size());</highlight></codeline>
<codeline lineno="79"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>keys_[pos];</highlight></codeline>
<codeline lineno="81"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="82"><highlight class="normal"></highlight></codeline>
<codeline lineno="83"><highlight class="normal"><sp/><sp/>Result&lt;Scalar&gt;<sp/><ref refid="classiceberg_1_1SimpleMapLike_1a4c24a1eafc33410c120c4cc3656ad247" kindref="member">GetValue</ref>(</highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"><sp/>pos)</highlight><highlight class="keyword"><sp/>const<sp/>override<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="84"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(pos<sp/>&gt;=<sp/>values_.size())<sp/>{</highlight></codeline>
<codeline lineno="85"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NotFound(</highlight><highlight class="stringliteral">&quot;value<sp/>position<sp/>{}<sp/>out<sp/>of<sp/>range<sp/>[0,<sp/>{})&quot;</highlight><highlight class="normal">,<sp/>pos,<sp/>values_.size());</highlight></codeline>
<codeline lineno="86"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="87"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>values_[pos];</highlight></codeline>
<codeline lineno="88"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="89"><highlight class="normal"></highlight></codeline>
<codeline lineno="90"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1SimpleMapLike_1a0d5d03a0c6856e598483cbd5c6077117" kindref="member">size</ref>()</highlight><highlight class="keyword"><sp/>const<sp/>override<sp/></highlight><highlight class="normal">{<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>keys_.size();<sp/>}</highlight></codeline>
<codeline lineno="91"><highlight class="normal"></highlight></codeline>
<codeline lineno="92"><highlight class="normal"><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="93"><highlight class="normal"><sp/><sp/>std::vector&lt;Scalar&gt;<sp/>keys_;</highlight></codeline>
<codeline lineno="94"><highlight class="normal"><sp/><sp/>std::vector&lt;Scalar&gt;<sp/>values_;</highlight></codeline>
<codeline lineno="95"><highlight class="normal">};</highlight></codeline>
<codeline lineno="96"><highlight class="normal"></highlight></codeline>
<codeline lineno="97" refid="classiceberg_1_1FailingStructLike" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classiceberg_1_1FailingStructLike" kindref="compound">FailingStructLike</ref><sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1StructLike" kindref="compound">StructLike</ref><sp/>{</highlight></codeline>
<codeline lineno="98"><highlight class="normal"><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="99"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">explicit</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1FailingStructLike" kindref="compound">FailingStructLike</ref>(</highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1FailingStructLike_1a66e2d5c2d8c5938feb66bd16090cddd5" kindref="member">num_fields</ref>)<sp/>:<sp/>num_fields_(<ref refid="classiceberg_1_1FailingStructLike_1a66e2d5c2d8c5938feb66bd16090cddd5" kindref="member">num_fields</ref>)<sp/>{}</highlight></codeline>
<codeline lineno="100"><highlight class="normal"></highlight></codeline>
<codeline lineno="101"><highlight class="normal"><sp/><sp/>Result&lt;Scalar&gt;<sp/><ref refid="classiceberg_1_1FailingStructLike_1af528cce038e606ec28548061d1a766bf" kindref="member">GetField</ref>(</highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"><sp/>pos)</highlight><highlight class="keyword"><sp/>const<sp/>override<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="102"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>NotFound(</highlight><highlight class="stringliteral">&quot;boom<sp/>at<sp/>field<sp/>{}&quot;</highlight><highlight class="normal">,<sp/>pos);</highlight></codeline>
<codeline lineno="103"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="104"><highlight class="normal"></highlight></codeline>
<codeline lineno="105"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1FailingStructLike_1a66e2d5c2d8c5938feb66bd16090cddd5" kindref="member">num_fields</ref>()</highlight><highlight class="keyword"><sp/>const<sp/>override<sp/></highlight><highlight class="normal">{<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>num_fields_;<sp/>}</highlight></codeline>
<codeline lineno="106"><highlight class="normal"></highlight></codeline>
<codeline lineno="107"><highlight class="normal"><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="108"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"><sp/>num_fields_;</highlight></codeline>
<codeline lineno="109"><highlight class="normal">};</highlight></codeline>
<codeline lineno="110"><highlight class="normal"></highlight></codeline>
<codeline lineno="111"><highlight class="normal"><ref refid="classiceberg_1_1StructType" kindref="compound">StructType</ref><sp/>MakeStructType(</highlight></codeline>
<codeline lineno="112"><highlight class="normal"><sp/><sp/><sp/><sp/>std::vector&lt;std::pair&lt;std::string,<sp/>std::shared_ptr&lt;Type&gt;&gt;&gt;<sp/>fields)<sp/>{</highlight></codeline>
<codeline lineno="113"><highlight class="normal"><sp/><sp/>std::vector&lt;SchemaField&gt;<sp/>schema_fields;</highlight></codeline>
<codeline lineno="114"><highlight class="normal"><sp/><sp/>schema_fields.reserve(fields.size());</highlight></codeline>
<codeline lineno="115"><highlight class="normal"><sp/><sp/>int32_t<sp/></highlight><highlight class="keywordtype">id</highlight><highlight class="normal"><sp/>=<sp/>1;</highlight></codeline>
<codeline lineno="116"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">auto</highlight><highlight class="normal">&amp;<sp/>[name,<sp/>type]<sp/>:<sp/>fields)<sp/>{</highlight></codeline>
<codeline lineno="117"><highlight class="normal"><sp/><sp/><sp/><sp/>schema_fields.push_back(<ref refid="classiceberg_1_1SchemaField_1a0c8382f6e164b76f45e4b4c26028a872" kindref="member">SchemaField::MakeOptional</ref>(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">++,<sp/>name,<sp/>std::move(type)));</highlight></codeline>
<codeline lineno="118"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="119"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>StructType(std::move(schema_fields));</highlight></codeline>
<codeline lineno="120"><highlight class="normal">}</highlight></codeline>
<codeline lineno="121"><highlight class="normal"></highlight></codeline>
<codeline lineno="122"><highlight class="normal">TEST(StructLikeSetTest,<sp/>EmptySet)<sp/>{</highlight></codeline>
<codeline lineno="123"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>type<sp/>=<sp/>MakeStructType({{</highlight><highlight class="stringliteral">&quot;id&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga91f0688c58d168d755610a2b5a1a222e" kindref="member">int32</ref>()}});</highlight></codeline>
<codeline lineno="124"><highlight class="normal"><sp/><sp/>StructLikeSet<sp/>set(type);</highlight></codeline>
<codeline lineno="125"><highlight class="normal"></highlight></codeline>
<codeline lineno="126"><highlight class="normal"><sp/><sp/>EXPECT_TRUE(set.IsEmpty());</highlight></codeline>
<codeline lineno="127"><highlight class="normal"><sp/><sp/>EXPECT_EQ(set.Size(),<sp/>0);</highlight></codeline>
<codeline lineno="128"><highlight class="normal"></highlight></codeline>
<codeline lineno="129"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>row({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{1}}});</highlight></codeline>
<codeline lineno="130"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(row),<sp/>HasValue(::testing::Eq(</highlight><highlight class="keyword">false</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="131"><highlight class="normal">}</highlight></codeline>
<codeline lineno="132"><highlight class="normal"></highlight></codeline>
<codeline lineno="133"><highlight class="normal">TEST(StructLikeSetTest,<sp/>InsertAndContains)<sp/>{</highlight></codeline>
<codeline lineno="134"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>type<sp/>=<sp/>MakeStructType({{</highlight><highlight class="stringliteral">&quot;id&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga91f0688c58d168d755610a2b5a1a222e" kindref="member">int32</ref>()},<sp/>{</highlight><highlight class="stringliteral">&quot;name&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga877a22ff733d9ca08b85258b8decbcdb" kindref="member">string</ref>()}});</highlight></codeline>
<codeline lineno="135"><highlight class="normal"><sp/><sp/>StructLikeSet<sp/>set(type);</highlight></codeline>
<codeline lineno="136"><highlight class="normal"></highlight></codeline>
<codeline lineno="137"><highlight class="normal"><sp/><sp/>std::string<sp/>name1<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;alice&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="138"><highlight class="normal"><sp/><sp/>std::string<sp/>name2<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;bob&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="139"><highlight class="normal"></highlight></codeline>
<codeline lineno="140"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>row1({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{1}},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::string_view(name1)}});</highlight></codeline>
<codeline lineno="141"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>row2({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{2}},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::string_view(name2)}});</highlight></codeline>
<codeline lineno="142"><highlight class="normal"></highlight></codeline>
<codeline lineno="143"><highlight class="normal"><sp/><sp/>ASSERT_THAT(set.Insert(row1),<sp/>IsOk());</highlight></codeline>
<codeline lineno="144"><highlight class="normal"><sp/><sp/>ASSERT_THAT(set.Insert(row2),<sp/>IsOk());</highlight></codeline>
<codeline lineno="145"><highlight class="normal"></highlight></codeline>
<codeline lineno="146"><highlight class="normal"><sp/><sp/>EXPECT_EQ(set.Size(),<sp/>2);</highlight></codeline>
<codeline lineno="147"><highlight class="normal"><sp/><sp/>EXPECT_FALSE(set.IsEmpty());</highlight></codeline>
<codeline lineno="148"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(row1),<sp/>HasValue(::testing::Eq(</highlight><highlight class="keyword">true</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="149"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(row2),<sp/>HasValue(::testing::Eq(</highlight><highlight class="keyword">true</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="150"><highlight class="normal"></highlight></codeline>
<codeline lineno="151"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>Row<sp/>not<sp/>in<sp/>the<sp/>set</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="152"><highlight class="normal"><sp/><sp/>std::string<sp/>name3<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;charlie&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="153"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>row3({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{3}},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::string_view(name3)}});</highlight></codeline>
<codeline lineno="154"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(row3),<sp/>HasValue(::testing::Eq(</highlight><highlight class="keyword">false</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="155"><highlight class="normal">}</highlight></codeline>
<codeline lineno="156"><highlight class="normal"></highlight></codeline>
<codeline lineno="157"><highlight class="normal">TEST(StructLikeSetTest,<sp/>InsertAndContainsWithCustomArenaInitialSize)<sp/>{</highlight></codeline>
<codeline lineno="158"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>type<sp/>=<sp/>MakeStructType({{</highlight><highlight class="stringliteral">&quot;id&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga91f0688c58d168d755610a2b5a1a222e" kindref="member">int32</ref>()},<sp/>{</highlight><highlight class="stringliteral">&quot;name&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga877a22ff733d9ca08b85258b8decbcdb" kindref="member">string</ref>()}});</highlight></codeline>
<codeline lineno="159"><highlight class="normal"><sp/><sp/>StructLikeSet<sp/>set(type,<sp/>8);</highlight></codeline>
<codeline lineno="160"><highlight class="normal"></highlight></codeline>
<codeline lineno="161"><highlight class="normal"><sp/><sp/>std::string<sp/>name<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;alice&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="162"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>row({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{1}},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::string_view(name)}});</highlight></codeline>
<codeline lineno="163"><highlight class="normal"></highlight></codeline>
<codeline lineno="164"><highlight class="normal"><sp/><sp/>ASSERT_THAT(set.Insert(row),<sp/>IsOk());</highlight></codeline>
<codeline lineno="165"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(row),<sp/>HasValue(::testing::Eq(</highlight><highlight class="keyword">true</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="166"><highlight class="normal">}</highlight></codeline>
<codeline lineno="167"><highlight class="normal"></highlight></codeline>
<codeline lineno="168"><highlight class="normal">TEST(StructLikeSetTest,<sp/>DuplicateInsert)<sp/>{</highlight></codeline>
<codeline lineno="169"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>type<sp/>=<sp/>MakeStructType({{</highlight><highlight class="stringliteral">&quot;id&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga91f0688c58d168d755610a2b5a1a222e" kindref="member">int32</ref>()}});</highlight></codeline>
<codeline lineno="170"><highlight class="normal"><sp/><sp/>StructLikeSet<sp/>set(type);</highlight></codeline>
<codeline lineno="171"><highlight class="normal"></highlight></codeline>
<codeline lineno="172"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>row({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{42}}});</highlight></codeline>
<codeline lineno="173"><highlight class="normal"><sp/><sp/>ASSERT_THAT(set.Insert(row),<sp/>IsOk());</highlight></codeline>
<codeline lineno="174"><highlight class="normal"><sp/><sp/>EXPECT_EQ(set.Size(),<sp/>1);</highlight></codeline>
<codeline lineno="175"><highlight class="normal"></highlight></codeline>
<codeline lineno="176"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>Duplicate<sp/>insertion<sp/>should<sp/>not<sp/>increase<sp/>size</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="177"><highlight class="normal"><sp/><sp/>ASSERT_THAT(set.Insert(row),<sp/>IsOk());</highlight></codeline>
<codeline lineno="178"><highlight class="normal"><sp/><sp/>EXPECT_EQ(set.Size(),<sp/>1);</highlight></codeline>
<codeline lineno="179"><highlight class="normal">}</highlight></codeline>
<codeline lineno="180"><highlight class="normal"></highlight></codeline>
<codeline lineno="181"><highlight class="normal">TEST(StructLikeSetTest,<sp/>FieldsWithNulls)<sp/>{</highlight></codeline>
<codeline lineno="182"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>type<sp/>=<sp/>MakeStructType({{</highlight><highlight class="stringliteral">&quot;id&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga91f0688c58d168d755610a2b5a1a222e" kindref="member">int32</ref>()},<sp/>{</highlight><highlight class="stringliteral">&quot;data&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1gafca6afb41a025fd4a7eed7809d4b653f" kindref="member">int64</ref>()}});</highlight></codeline>
<codeline lineno="183"><highlight class="normal"><sp/><sp/>StructLikeSet<sp/>set(type);</highlight></codeline>
<codeline lineno="184"><highlight class="normal"></highlight></codeline>
<codeline lineno="185"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>Row<sp/>with<sp/>null<sp/>in<sp/>second<sp/>field</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="186"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>row1({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{1}},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::monostate{}}});</highlight></codeline>
<codeline lineno="187"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>row2({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{2}},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::monostate{}}});</highlight></codeline>
<codeline lineno="188"><highlight class="normal"></highlight></codeline>
<codeline lineno="189"><highlight class="normal"><sp/><sp/>ASSERT_THAT(set.Insert(row1),<sp/>IsOk());</highlight></codeline>
<codeline lineno="190"><highlight class="normal"><sp/><sp/>ASSERT_THAT(set.Insert(row2),<sp/>IsOk());</highlight></codeline>
<codeline lineno="191"><highlight class="normal"></highlight></codeline>
<codeline lineno="192"><highlight class="normal"><sp/><sp/>EXPECT_EQ(set.Size(),<sp/>2);</highlight></codeline>
<codeline lineno="193"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(row1),<sp/>HasValue(::testing::Eq(</highlight><highlight class="keyword">true</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="194"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(row2),<sp/>HasValue(::testing::Eq(</highlight><highlight class="keyword">true</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="195"><highlight class="normal"></highlight></codeline>
<codeline lineno="196"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>Same<sp/>key<sp/>as<sp/>row1<sp/>—<sp/>should<sp/>match</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="197"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>row1_copy({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{1}},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::monostate{}}});</highlight></codeline>
<codeline lineno="198"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(row1_copy),<sp/>HasValue(::testing::Eq(</highlight><highlight class="keyword">true</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="199"><highlight class="normal">}</highlight></codeline>
<codeline lineno="200"><highlight class="normal"></highlight></codeline>
<codeline lineno="201"><highlight class="normal">TEST(StructLikeSetTest,<sp/>StringFieldOwnership)<sp/>{</highlight></codeline>
<codeline lineno="202"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>type<sp/>=<sp/>MakeStructType({{</highlight><highlight class="stringliteral">&quot;name&quot;</highlight><highlight class="normal">,<sp/>std::make_shared&lt;StringType&gt;()}});</highlight></codeline>
<codeline lineno="203"><highlight class="normal"><sp/><sp/>StructLikeSet<sp/>set(type);</highlight></codeline>
<codeline lineno="204"><highlight class="normal"></highlight></codeline>
<codeline lineno="205"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>Insert<sp/>with<sp/>a<sp/>temporary<sp/>string<sp/>that<sp/>will<sp/>be<sp/>destroyed</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="206"><highlight class="normal"><sp/><sp/>{</highlight></codeline>
<codeline lineno="207"><highlight class="normal"><sp/><sp/><sp/><sp/>std::string<sp/>temp<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;temporary_string_data&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="208"><highlight class="normal"><sp/><sp/><sp/><sp/>SimpleStructLike<sp/>row({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::string_view(temp)}});</highlight></codeline>
<codeline lineno="209"><highlight class="normal"><sp/><sp/><sp/><sp/>ASSERT_THAT(set.Insert(row),<sp/>IsOk());</highlight></codeline>
<codeline lineno="210"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="211"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>temp<sp/>is<sp/>destroyed<sp/>here<sp/>—<sp/>arena<sp/>should<sp/>hold<sp/>the<sp/>copy</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="212"><highlight class="normal"></highlight></codeline>
<codeline lineno="213"><highlight class="normal"><sp/><sp/>EXPECT_EQ(set.Size(),<sp/>1);</highlight></codeline>
<codeline lineno="214"><highlight class="normal"></highlight></codeline>
<codeline lineno="215"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>Look<sp/>up<sp/>with<sp/>a<sp/>new<sp/>string<sp/>that<sp/>has<sp/>the<sp/>same<sp/>content</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="216"><highlight class="normal"><sp/><sp/>std::string<sp/>lookup<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;temporary_string_data&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="217"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>lookup_row({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::string_view(lookup)}});</highlight></codeline>
<codeline lineno="218"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(lookup_row),<sp/>HasValue(::testing::Eq(</highlight><highlight class="keyword">true</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="219"><highlight class="normal">}</highlight></codeline>
<codeline lineno="220"><highlight class="normal"></highlight></codeline>
<codeline lineno="221"><highlight class="normal">TEST(StructLikeSetTest,<sp/>MultipleTypes)<sp/>{</highlight></codeline>
<codeline lineno="222"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>type<sp/>=<sp/>MakeStructType({{</highlight><highlight class="stringliteral">&quot;b&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1gafb5f5aec1d1d6218809ee512e2f87e83" kindref="member">boolean</ref>()},</highlight></codeline>
<codeline lineno="223"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight><highlight class="stringliteral">&quot;i&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga91f0688c58d168d755610a2b5a1a222e" kindref="member">int32</ref>()},</highlight></codeline>
<codeline lineno="224"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight><highlight class="stringliteral">&quot;l&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1gafca6afb41a025fd4a7eed7809d4b653f" kindref="member">int64</ref>()},</highlight></codeline>
<codeline lineno="225"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight><highlight class="stringliteral">&quot;f&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1gab54ddf6ad9419b772fbde66891733212" kindref="member">float32</ref>()},</highlight></codeline>
<codeline lineno="226"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight><highlight class="stringliteral">&quot;d&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga8457285a5fea3eda5b3f4289bce62ecb" kindref="member">float64</ref>()},</highlight></codeline>
<codeline lineno="227"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight><highlight class="stringliteral">&quot;s&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga877a22ff733d9ca08b85258b8decbcdb" kindref="member">string</ref>()},</highlight></codeline>
<codeline lineno="228"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight><highlight class="stringliteral">&quot;dt&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga377ecf647b08303fd9f87c31b1519dbf" kindref="member">date</ref>()}});</highlight></codeline>
<codeline lineno="229"><highlight class="normal"><sp/><sp/>StructLikeSet<sp/>set(type);</highlight></codeline>
<codeline lineno="230"><highlight class="normal"></highlight></codeline>
<codeline lineno="231"><highlight class="normal"><sp/><sp/>std::string<sp/>str<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;hello&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="232"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>row({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{</highlight><highlight class="keyword">true</highlight><highlight class="normal">},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{1}},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int64_t{2}},</highlight></codeline>
<codeline lineno="233"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{1.0f},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{2.0},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::string_view(str)},</highlight></codeline>
<codeline lineno="234"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{19000}}});</highlight></codeline>
<codeline lineno="235"><highlight class="normal"><sp/><sp/>ASSERT_THAT(set.Insert(row),<sp/>IsOk());</highlight></codeline>
<codeline lineno="236"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(row),<sp/>HasValue(::testing::Eq(</highlight><highlight class="keyword">true</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="237"><highlight class="normal"></highlight></codeline>
<codeline lineno="238"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>Different<sp/>values<sp/>→<sp/>not<sp/>found</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="239"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>row2({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{</highlight><highlight class="keyword">false</highlight><highlight class="normal">},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{1}},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int64_t{2}},</highlight></codeline>
<codeline lineno="240"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{1.0f},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{2.0},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::string_view(str)},</highlight></codeline>
<codeline lineno="241"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{19000}}});</highlight></codeline>
<codeline lineno="242"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(row2),<sp/>HasValue(::testing::Eq(</highlight><highlight class="keyword">false</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="243"><highlight class="normal">}</highlight></codeline>
<codeline lineno="244"><highlight class="normal"></highlight></codeline>
<codeline lineno="245"><highlight class="normal">TEST(StructLikeSetTest,<sp/>NestedStruct)<sp/>{</highlight></codeline>
<codeline lineno="246"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>inner_type<sp/>=<sp/><ref refid="group__type-factories_1gabb4c15b4e4cef71d45d6af7bc2777469" kindref="member">struct_</ref>({<ref refid="classiceberg_1_1SchemaField_1a0c8382f6e164b76f45e4b4c26028a872" kindref="member">SchemaField::MakeOptional</ref>(10,<sp/></highlight><highlight class="stringliteral">&quot;x&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga91f0688c58d168d755610a2b5a1a222e" kindref="member">int32</ref>()),</highlight></codeline>
<codeline lineno="247"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classiceberg_1_1SchemaField_1a0c8382f6e164b76f45e4b4c26028a872" kindref="member">SchemaField::MakeOptional</ref>(11,<sp/></highlight><highlight class="stringliteral">&quot;y&quot;</highlight><highlight class="normal">,<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal">())});</highlight></codeline>
<codeline lineno="248"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>outer_type<sp/>=<sp/>MakeStructType({{</highlight><highlight class="stringliteral">&quot;id&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga91f0688c58d168d755610a2b5a1a222e" kindref="member">int32</ref>()},<sp/>{</highlight><highlight class="stringliteral">&quot;nested&quot;</highlight><highlight class="normal">,<sp/>inner_type}});</highlight></codeline>
<codeline lineno="249"><highlight class="normal"><sp/><sp/>StructLikeSet<sp/>set(outer_type);</highlight></codeline>
<codeline lineno="250"><highlight class="normal"></highlight></codeline>
<codeline lineno="251"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>Create<sp/>nested<sp/>StructLike</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="252"><highlight class="normal"><sp/><sp/>std::string<sp/>inner_str<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;nested_value&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="253"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>inner<sp/>=<sp/>std::make_shared&lt;SimpleStructLike&gt;(</highlight></codeline>
<codeline lineno="254"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>std::vector&lt;Scalar&gt;{<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{10}},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::string_view(inner_str)}});</highlight></codeline>
<codeline lineno="255"><highlight class="normal"></highlight></codeline>
<codeline lineno="256"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>row({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{1}},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::shared_ptr&lt;StructLike&gt;(inner)}});</highlight></codeline>
<codeline lineno="257"><highlight class="normal"><sp/><sp/>ASSERT_THAT(set.Insert(row),<sp/>IsOk());</highlight></codeline>
<codeline lineno="258"><highlight class="normal"><sp/><sp/>EXPECT_EQ(set.Size(),<sp/>1);</highlight></codeline>
<codeline lineno="259"><highlight class="normal"></highlight></codeline>
<codeline lineno="260"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>Look<sp/>up<sp/>with<sp/>same<sp/>nested<sp/>content<sp/>(different<sp/>object)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="261"><highlight class="normal"><sp/><sp/>std::string<sp/>inner_str2<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;nested_value&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="262"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>inner2<sp/>=<sp/>std::make_shared&lt;SimpleStructLike&gt;(</highlight></codeline>
<codeline lineno="263"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>std::vector&lt;Scalar&gt;{<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{10}},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::string_view(inner_str2)}});</highlight></codeline>
<codeline lineno="264"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>lookup(</highlight></codeline>
<codeline lineno="265"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>{<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{1}},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::shared_ptr&lt;StructLike&gt;(inner2)}});</highlight></codeline>
<codeline lineno="266"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(lookup),<sp/>HasValue(::testing::Eq(</highlight><highlight class="keyword">true</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="267"><highlight class="normal"></highlight></codeline>
<codeline lineno="268"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>Different<sp/>nested<sp/>content<sp/>→<sp/>not<sp/>found</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="269"><highlight class="normal"><sp/><sp/>std::string<sp/>inner_str3<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;different&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="270"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>inner3<sp/>=<sp/>std::make_shared&lt;SimpleStructLike&gt;(</highlight></codeline>
<codeline lineno="271"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>std::vector&lt;Scalar&gt;{<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{10}},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::string_view(inner_str3)}});</highlight></codeline>
<codeline lineno="272"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>different(</highlight></codeline>
<codeline lineno="273"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>{<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{1}},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::shared_ptr&lt;StructLike&gt;(inner3)}});</highlight></codeline>
<codeline lineno="274"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(different),<sp/>HasValue(::testing::Eq(</highlight><highlight class="keyword">false</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="275"><highlight class="normal">}</highlight></codeline>
<codeline lineno="276"><highlight class="normal"></highlight></codeline>
<codeline lineno="277"><highlight class="normal">TEST(StructLikeSetTest,<sp/>NestedStructOwnership)<sp/>{</highlight></codeline>
<codeline lineno="278"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>inner_type<sp/>=<sp/><ref refid="group__type-factories_1gabb4c15b4e4cef71d45d6af7bc2777469" kindref="member">struct_</ref>({<ref refid="classiceberg_1_1SchemaField_1a0c8382f6e164b76f45e4b4c26028a872" kindref="member">SchemaField::MakeOptional</ref>(10,<sp/></highlight><highlight class="stringliteral">&quot;s&quot;</highlight><highlight class="normal">,<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal">())});</highlight></codeline>
<codeline lineno="279"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>outer_type<sp/>=<sp/>MakeStructType({{</highlight><highlight class="stringliteral">&quot;nested&quot;</highlight><highlight class="normal">,<sp/>inner_type}});</highlight></codeline>
<codeline lineno="280"><highlight class="normal"><sp/><sp/>StructLikeSet<sp/>set(outer_type);</highlight></codeline>
<codeline lineno="281"><highlight class="normal"></highlight></codeline>
<codeline lineno="282"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>Insert<sp/>with<sp/>temporary<sp/>inner<sp/>data</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="283"><highlight class="normal"><sp/><sp/>{</highlight></codeline>
<codeline lineno="284"><highlight class="normal"><sp/><sp/><sp/><sp/>std::string<sp/>temp<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;will_be_destroyed&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="285"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>inner<sp/>=<sp/>std::make_shared&lt;SimpleStructLike&gt;(</highlight></codeline>
<codeline lineno="286"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::vector&lt;Scalar&gt;{<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::string_view(temp)}});</highlight></codeline>
<codeline lineno="287"><highlight class="normal"><sp/><sp/><sp/><sp/>SimpleStructLike<sp/>row({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::shared_ptr&lt;StructLike&gt;(inner)}});</highlight></codeline>
<codeline lineno="288"><highlight class="normal"><sp/><sp/><sp/><sp/>ASSERT_THAT(set.Insert(row),<sp/>IsOk());</highlight></codeline>
<codeline lineno="289"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="290"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>temp<sp/>and<sp/>inner<sp/>are<sp/>destroyed<sp/>here.<sp/>Arena<sp/>should<sp/>hold<sp/>copies.</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="291"><highlight class="normal"></highlight></codeline>
<codeline lineno="292"><highlight class="normal"><sp/><sp/>EXPECT_EQ(set.Size(),<sp/>1);</highlight></codeline>
<codeline lineno="293"><highlight class="normal"></highlight></codeline>
<codeline lineno="294"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>Look<sp/>up<sp/>with<sp/>new<sp/>identical<sp/>content</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="295"><highlight class="normal"><sp/><sp/>std::string<sp/>lookup_str<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;will_be_destroyed&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="296"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>inner2<sp/>=<sp/>std::make_shared&lt;SimpleStructLike&gt;(</highlight></codeline>
<codeline lineno="297"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>std::vector&lt;Scalar&gt;{<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::string_view(lookup_str)}});</highlight></codeline>
<codeline lineno="298"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>lookup({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::shared_ptr&lt;StructLike&gt;(inner2)}});</highlight></codeline>
<codeline lineno="299"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(lookup),<sp/>HasValue(::testing::Eq(</highlight><highlight class="keyword">true</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="300"><highlight class="normal">}</highlight></codeline>
<codeline lineno="301"><highlight class="normal"></highlight></codeline>
<codeline lineno="302"><highlight class="normal">TEST(StructLikeSetTest,<sp/>AllNullRow)<sp/>{</highlight></codeline>
<codeline lineno="303"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>type<sp/>=<sp/>MakeStructType({{</highlight><highlight class="stringliteral">&quot;a&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga91f0688c58d168d755610a2b5a1a222e" kindref="member">int32</ref>()},<sp/>{</highlight><highlight class="stringliteral">&quot;b&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga877a22ff733d9ca08b85258b8decbcdb" kindref="member">string</ref>()}});</highlight></codeline>
<codeline lineno="304"><highlight class="normal"><sp/><sp/>StructLikeSet<sp/>set(type);</highlight></codeline>
<codeline lineno="305"><highlight class="normal"></highlight></codeline>
<codeline lineno="306"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>null_row({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::monostate{}},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::monostate{}}});</highlight></codeline>
<codeline lineno="307"><highlight class="normal"><sp/><sp/>ASSERT_THAT(set.Insert(null_row),<sp/>IsOk());</highlight></codeline>
<codeline lineno="308"><highlight class="normal"><sp/><sp/>EXPECT_EQ(set.Size(),<sp/>1);</highlight></codeline>
<codeline lineno="309"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(null_row),<sp/>HasValue(::testing::Eq(</highlight><highlight class="keyword">true</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="310"><highlight class="normal"></highlight></codeline>
<codeline lineno="311"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>Duplicate<sp/>null<sp/>row</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="312"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>null_row2({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::monostate{}},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::monostate{}}});</highlight></codeline>
<codeline lineno="313"><highlight class="normal"><sp/><sp/>ASSERT_THAT(set.Insert(null_row2),<sp/>IsOk());</highlight></codeline>
<codeline lineno="314"><highlight class="normal"><sp/><sp/>EXPECT_EQ(set.Size(),<sp/>1);</highlight></codeline>
<codeline lineno="315"><highlight class="normal">}</highlight></codeline>
<codeline lineno="316"><highlight class="normal"></highlight></codeline>
<codeline lineno="317"><highlight class="normal">TEST(StructLikeSetTest,<sp/>ContainsPropagatesFieldAccessError)<sp/>{</highlight></codeline>
<codeline lineno="318"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>type<sp/>=<sp/>MakeStructType({{</highlight><highlight class="stringliteral">&quot;id&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga91f0688c58d168d755610a2b5a1a222e" kindref="member">int32</ref>()}});</highlight></codeline>
<codeline lineno="319"><highlight class="normal"><sp/><sp/>StructLikeSet<sp/>set(type);</highlight></codeline>
<codeline lineno="320"><highlight class="normal"></highlight></codeline>
<codeline lineno="321"><highlight class="normal"><sp/><sp/>FailingStructLike<sp/>row(1);</highlight></codeline>
<codeline lineno="322"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(row),<sp/>IsError(ErrorKind::kNotFound));</highlight></codeline>
<codeline lineno="323"><highlight class="normal">}</highlight></codeline>
<codeline lineno="324"><highlight class="normal"></highlight></codeline>
<codeline lineno="325"><highlight class="normal">TEST(StructLikeSetTest,<sp/>InsertPropagatesFieldAccessError)<sp/>{</highlight></codeline>
<codeline lineno="326"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>type<sp/>=<sp/>MakeStructType({{</highlight><highlight class="stringliteral">&quot;id&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga91f0688c58d168d755610a2b5a1a222e" kindref="member">int32</ref>()}});</highlight></codeline>
<codeline lineno="327"><highlight class="normal"><sp/><sp/>StructLikeSet<sp/>set(type);</highlight></codeline>
<codeline lineno="328"><highlight class="normal"></highlight></codeline>
<codeline lineno="329"><highlight class="normal"><sp/><sp/>FailingStructLike<sp/>row(1);</highlight></codeline>
<codeline lineno="330"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Insert(row),<sp/>IsError(ErrorKind::kNotFound));</highlight></codeline>
<codeline lineno="331"><highlight class="normal">}</highlight></codeline>
<codeline lineno="332"><highlight class="normal"></highlight></codeline>
<codeline lineno="333"><highlight class="normal">TEST(StructLikeSetTest,<sp/>InsertRejectsFieldCountMismatch)<sp/>{</highlight></codeline>
<codeline lineno="334"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>type<sp/>=<sp/>MakeStructType({{</highlight><highlight class="stringliteral">&quot;id&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga91f0688c58d168d755610a2b5a1a222e" kindref="member">int32</ref>()},<sp/>{</highlight><highlight class="stringliteral">&quot;name&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga877a22ff733d9ca08b85258b8decbcdb" kindref="member">string</ref>()}});</highlight></codeline>
<codeline lineno="335"><highlight class="normal"><sp/><sp/>StructLikeSet<sp/>set(type);</highlight></codeline>
<codeline lineno="336"><highlight class="normal"></highlight></codeline>
<codeline lineno="337"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>row({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{1}}});</highlight></codeline>
<codeline lineno="338"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Insert(row),<sp/>IsError(ErrorKind::kInvalidArgument));</highlight></codeline>
<codeline lineno="339"><highlight class="normal">}</highlight></codeline>
<codeline lineno="340"><highlight class="normal"></highlight></codeline>
<codeline lineno="341"><highlight class="normal">TEST(StructLikeSetTest,<sp/>ContainsRejectsFieldTypeMismatch)<sp/>{</highlight></codeline>
<codeline lineno="342"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>type<sp/>=<sp/>MakeStructType({{</highlight><highlight class="stringliteral">&quot;id&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga91f0688c58d168d755610a2b5a1a222e" kindref="member">int32</ref>()}});</highlight></codeline>
<codeline lineno="343"><highlight class="normal"><sp/><sp/>StructLikeSet<sp/>set(type);</highlight></codeline>
<codeline lineno="344"><highlight class="normal"></highlight></codeline>
<codeline lineno="345"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>row({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::string_view(</highlight><highlight class="stringliteral">&quot;not_an_int&quot;</highlight><highlight class="normal">)}});</highlight></codeline>
<codeline lineno="346"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(row),<sp/>IsError(ErrorKind::kInvalidArgument));</highlight></codeline>
<codeline lineno="347"><highlight class="normal">}</highlight></codeline>
<codeline lineno="348"><highlight class="normal"></highlight></codeline>
<codeline lineno="349"><highlight class="normal">TEST(StructLikeSetTest,<sp/>FloatAndDoubleFollowJavaEqualitySemantics)<sp/>{</highlight></codeline>
<codeline lineno="350"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>type<sp/>=<sp/>MakeStructType({{</highlight><highlight class="stringliteral">&quot;f&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1gab54ddf6ad9419b772fbde66891733212" kindref="member">float32</ref>()},<sp/>{</highlight><highlight class="stringliteral">&quot;d&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga8457285a5fea3eda5b3f4289bce62ecb" kindref="member">float64</ref>()}});</highlight></codeline>
<codeline lineno="351"><highlight class="normal"><sp/><sp/>StructLikeSet<sp/>set(type);</highlight></codeline>
<codeline lineno="352"><highlight class="normal"></highlight></codeline>
<codeline lineno="353"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">float</highlight><highlight class="normal"><sp/>float_nan<sp/>=<sp/>std::numeric_limits&lt;float&gt;::quiet_NaN();</highlight></codeline>
<codeline lineno="354"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>double_nan<sp/>=<sp/>std::numeric_limits&lt;double&gt;::quiet_NaN();</highlight></codeline>
<codeline lineno="355"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>nan_row({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{float_nan},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{double_nan}});</highlight></codeline>
<codeline lineno="356"><highlight class="normal"><sp/><sp/>ASSERT_THAT(set.Insert(nan_row),<sp/>IsOk());</highlight></codeline>
<codeline lineno="357"><highlight class="normal"></highlight></codeline>
<codeline lineno="358"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">float</highlight><highlight class="normal"><sp/>another_float_nan<sp/>=<sp/>std::numeric_limits&lt;float&gt;::signaling_NaN();</highlight></codeline>
<codeline lineno="359"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>another_double_nan<sp/>=<sp/>std::numeric_limits&lt;double&gt;::signaling_NaN();</highlight></codeline>
<codeline lineno="360"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>lookup_nan({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{another_float_nan},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{another_double_nan}});</highlight></codeline>
<codeline lineno="361"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(lookup_nan),<sp/>HasValue(::testing::Eq(</highlight><highlight class="keyword">true</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="362"><highlight class="normal"></highlight></codeline>
<codeline lineno="363"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>neg_zero({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{-0.0f},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{-0.0}});</highlight></codeline>
<codeline lineno="364"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>pos_zero({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{0.0f},<sp/><ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{0.0}});</highlight></codeline>
<codeline lineno="365"><highlight class="normal"><sp/><sp/>ASSERT_THAT(set.Insert(neg_zero),<sp/>IsOk());</highlight></codeline>
<codeline lineno="366"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(pos_zero),<sp/>HasValue(::testing::Eq(</highlight><highlight class="keyword">false</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="367"><highlight class="normal"><sp/><sp/>ASSERT_THAT(set.Insert(pos_zero),<sp/>IsOk());</highlight></codeline>
<codeline lineno="368"><highlight class="normal"><sp/><sp/>EXPECT_EQ(set.Size(),<sp/>3);</highlight></codeline>
<codeline lineno="369"><highlight class="normal">}</highlight></codeline>
<codeline lineno="370"><highlight class="normal"></highlight></codeline>
<codeline lineno="371"><highlight class="normal">TEST(StructLikeSetTest,<sp/>NestedMapIsHashedAndComparedRecursively)<sp/>{</highlight></codeline>
<codeline lineno="372"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>map_type<sp/>=</highlight></codeline>
<codeline lineno="373"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>std::make_shared&lt;MapType&gt;(<ref refid="classiceberg_1_1SchemaField_1a4ad7baa4dedd37e2f699a2f32deef942" kindref="member">SchemaField::MakeRequired</ref>(10,<sp/></highlight><highlight class="stringliteral">&quot;key&quot;</highlight><highlight class="normal">,<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal">()),</highlight></codeline>
<codeline lineno="374"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classiceberg_1_1SchemaField_1a0c8382f6e164b76f45e4b4c26028a872" kindref="member">SchemaField::MakeOptional</ref>(11,<sp/></highlight><highlight class="stringliteral">&quot;value&quot;</highlight><highlight class="normal">,<sp/><ref refid="group__type-factories_1ga91f0688c58d168d755610a2b5a1a222e" kindref="member">int32</ref>()));</highlight></codeline>
<codeline lineno="375"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>type<sp/>=<sp/>MakeStructType({{</highlight><highlight class="stringliteral">&quot;m&quot;</highlight><highlight class="normal">,<sp/>map_type}});</highlight></codeline>
<codeline lineno="376"><highlight class="normal"><sp/><sp/>StructLikeSet<sp/>set(type);</highlight></codeline>
<codeline lineno="377"><highlight class="normal"></highlight></codeline>
<codeline lineno="378"><highlight class="normal"><sp/><sp/>std::string<sp/>key1<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;a&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="379"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>map1<sp/>=</highlight></codeline>
<codeline lineno="380"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>std::make_shared&lt;SimpleMapLike&gt;(std::vector&lt;Scalar&gt;{<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::string_view(key1)}},</highlight></codeline>
<codeline lineno="381"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::vector&lt;Scalar&gt;{<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{7}}});</highlight></codeline>
<codeline lineno="382"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>row({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::shared_ptr&lt;MapLike&gt;(map1)}});</highlight></codeline>
<codeline lineno="383"><highlight class="normal"><sp/><sp/>ASSERT_THAT(set.Insert(row),<sp/>IsOk());</highlight></codeline>
<codeline lineno="384"><highlight class="normal"></highlight></codeline>
<codeline lineno="385"><highlight class="normal"><sp/><sp/>std::string<sp/>key2<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;a&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="386"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>map2<sp/>=</highlight></codeline>
<codeline lineno="387"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>std::make_shared&lt;SimpleMapLike&gt;(std::vector&lt;Scalar&gt;{<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::string_view(key2)}},</highlight></codeline>
<codeline lineno="388"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::vector&lt;Scalar&gt;{<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{7}}});</highlight></codeline>
<codeline lineno="389"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>same({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::shared_ptr&lt;MapLike&gt;(map2)}});</highlight></codeline>
<codeline lineno="390"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(same),<sp/>HasValue(::testing::Eq(</highlight><highlight class="keyword">true</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="391"><highlight class="normal"></highlight></codeline>
<codeline lineno="392"><highlight class="normal"><sp/><sp/>std::string<sp/>key3<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;b&quot;</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="393"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/>map3<sp/>=</highlight></codeline>
<codeline lineno="394"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>std::make_shared&lt;SimpleMapLike&gt;(std::vector&lt;Scalar&gt;{<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::string_view(key3)}},</highlight></codeline>
<codeline lineno="395"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::vector&lt;Scalar&gt;{<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{int32_t{7}}});</highlight></codeline>
<codeline lineno="396"><highlight class="normal"><sp/><sp/>SimpleStructLike<sp/>different({<ref refid="struct__like_8h_1a3b5162f202989971e28bc310237964db" kindref="member">Scalar</ref>{std::shared_ptr&lt;MapLike&gt;(map3)}});</highlight></codeline>
<codeline lineno="397"><highlight class="normal"><sp/><sp/>EXPECT_THAT(set.Contains(different),<sp/>HasValue(::testing::Eq(</highlight><highlight class="keyword">false</highlight><highlight class="normal">)));</highlight></codeline>
<codeline lineno="398"><highlight class="normal">}</highlight></codeline>
<codeline lineno="399"><highlight class="normal"></highlight></codeline>
<codeline lineno="400"><highlight class="normal">}<sp/><sp/></highlight><highlight class="comment">//<sp/>namespace<sp/>iceberg</highlight><highlight class="normal"></highlight></codeline>
</programlisting>
<location file="iceberg/test/struct_like_set_test.cc"/>
</compounddef>
</doxygen>