[#absl-c_set_intersection-095]
= xref:absl.adoc[absl]::c&lowbar;set&lowbar;intersection
:relfileprefix: ../
:mrdocs:

Container&hyphen;based version of the &lt;algorithm&gt; `std&colon;&colon;set&lowbar;intersection()` function to return an iterator containing the intersection of two sorted containers&period;

== Synopsis

Declared in `&lt;absl&sol;algorithm&sol;container&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename C1,
    typename C2,
    typename OutputIterator&gt;
requires !container&lowbar;algorithm&lowbar;internal&colon;&colon;IsUnorderedContainer&lt;C1&gt;&colon;&colon;value &amp;&amp; !container&lowbar;algorithm&lowbar;internal&colon;&colon;IsUnorderedContainer&lt;C2&gt;&colon;&colon;value
constexpr
OutputIterator
c&lowbar;set&lowbar;intersection(
    C1 const& c1,
    C2 const& c2,
    OutputIterator output);
----

== Return Value

An iterator to the end of the written range in the output&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *c1*
| The first sorted container&period;
| *c2*
| The second sorted container&period;
| *output*
| The output iterator receiving the intersection&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
