e `search` function</span>
-->
<p><span class="caption">リスト13-29: <code>search</code>関数の実装でイテレータアダプタのメソッドを使用する</span></p>
<!--
Recall that the purpose of the `search` function is to return all lines in
`contents` that contain the `query`. Similar to the `filter` example in Listing
13-19, this code uses the `filter` adaptor to keep only the lines that
`line.contains(query)` returns true for. We then collect the matching lines
into another vector with `c