[#mrdocs-pair_like]
= xref:mrdocs.adoc[mrdocs]::pair&lowbar;like
:relfileprefix: ../
:mrdocs:

Concept to check if a type is pair&hyphen;like

== Synopsis

Declared in `&lt;mrdocs&sol;Support&sol;Concepts&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class T&gt;
concept pair&lowbar;like = tuple&lowbar;like&lt;T&gt; &amp;&amp;
    (std&colon;&colon;tuple&lowbar;size&lt;std&colon;&colon;remove&lowbar;cvref&lowbar;t&lt;T&gt;&gt;&colon;&colon;value &equals;&equals; 2);
----

== Description

This concept checks if a type is tuple&hyphen;like and has exactly two elements&period;

Examples of such types are std&colon;&colon;pair, std&colon;&colon;array with two elements, and user&hyphen;defined types that provide specializations for std&colon;&colon;tuple&lowbar;size and std&colon;&colon;tuple&lowbar;element with exactly two elements&period;


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