termines the common type of two ` pair ` s   
(class template specialization)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/pair/dsc_common_type&action=edit)  
[ std::formatter  <std::pair> ](/w/cpp/utility/format/tuple_formatter "cpp/utility/format/tuple formatter") (C++23)  |  formatting support for ` pair `   
(class template specialization)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/format/dsc_tuple_formatter&action=edit)  
  
###  [ [ edit ](/mwiki/index.php?title=cpp/utility/pair&action=edit&section=7
"Edit section: Deduction guides\(since C++17\)") ]  [ Deduction guides
](/w/cpp/utility/pair/deduction_guides "cpp/utility/pair/deduction guides")
(since C++17)

###  [ [ edit ](/mwiki/index.php?title=cpp/utility/pair&action=edit&section=8
"Edit section: Defect reports") ]  Defect reports

The following behavior-changing defect reports were applied retroactively to
previously published C++ standards.

DR  |  Applied to  |  Behavior as published  |  Correct behavior   
---|---|---|---  
[ LWG 2796 ](https://cplusplus.github.io/LWG/issue2796) |  C++98  |  triviality of the destructor of ` pair ` was unspecified  |  specified   
  
###  [ [ edit ](/mwiki/index.php?title=cpp/utility/pair&action=edit&section=9
"Edit section: See also") ]  See also

[ tuple  ](/w/cpp/utility/tuple "cpp/utility/tuple") (C++11)  |  implements fixed size container, which holds elements of possibly different types   
(class template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/dsc_tuple&action=edit)  
---|---  
[ tie  ](/w/cpp/utility/tuple/tie "cpp/utility/tuple/tie") (C++11)  |  creates a  [ tuple ](/w/cpp/utility/tuple "cpp/utility/tuple") of lvalue references or unpacks a tuple into individual objects   
(function template)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/tuple/dsc_tie&action=edit)  
  
Retrieved from " [
https://en.cppreference.com/mwiki/index.php?title=cpp/utility/pair&oldid=170510
](https://en.cppreference.com/mwiki/index.php?title=cpp/utility/pair&oldid=170510)
"

#####  Navigation

  * [ Support us ](http://www.cppreference.com/support)
  * [ Recent changes ](/w/Special:RecentChanges "A list of recent changes in the wiki \[r\]")
  * [ FAQ ](/w/Cppreference:FAQ)
  * [ Offline version ](/w/Cppreference:Archives)

#####  Toolbox

  * [ What links here ](/w/Special:WhatLinksHere/cpp/utility/pair "A list of all wiki pages that link here \[j\]")
  * [ Related changes ](/w/Special:RecentChangesLinked/cpp/utility/pair "Recent changes in pages linked from this page \[k\]")
  * [ Upload file ](http://upload.cppreference.com/w/Special:Upload "Upload files \[u\]")
  * [ Special pages ](/w/Special:SpecialPages "A list of all special pages \[q\]")
  * [ Printable version ](/mwiki/index.php?title=cpp/utility/pair&printable=yes "Printable version of this page \[p\]")
  * [ Permanent link ](/mwiki/index.php?title=cpp/utility/pair&oldid=170510 "Permanent link to this revision of the page")
  * [ Page information ](/mwiki/index.php?title=cpp/utility/pair&action=info)

  * In other languages 

  * [ Česky ](http://cs.cppreference.com/w/cpp/utility/pair "cpp/utility/pair")
  * [ Deutsch ](http://de.cppreference.com/w/cpp/utility/pair "cpp/utility/pair")
  * [ Español ](http://es.cppreference.com/w/cpp/utility/pair "cpp/utility/pair")
  * [ Français ](http://fr.cppreference.com/w/cpp/utility/pair "cpp/utility/pair")
  * [ Italiano ](http://it.cppreference.com/w/cpp/utility/pair "cpp/utility/pair")
  * [ 日本語 ](http://ja.cppreference.com/w/cpp/utility/pair "cpp/utility/pair")
  * [ 한국어 ](http://ko.cppreference.com/w/cpp/utility/pair "cpp/utility/pair")
  * [ Polski ](http://pl.cppreference.com/w/cpp/utility/pair "cpp/utility/pair")
  * [ Português ](http://pt.cppreference.com/w/cpp/utility/pair "cpp/utility/pair")
  * [ Русский ](http://ru.cppreference.com/w/cpp/utility/pair "cpp/utility/pair")
  * [