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

Правка en1, от 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?

Теги #cpp

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Qwop 2020-09-27 13:14:11 232 Initial revision (published)