Difference between std::pair and std::array<typename, 2>

Revision en1, by Qwop, 2020-09-27 13:14:11

Are there any pros of using std::array<type, 2> over std::pair<type, type>, other than the most obvious one that std::pair supports different types while std::array does not?

Tags #cpp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Qwop 2020-09-27 13:14:11 232 Initial revision (published)