From http://www.cplusplus.com/reference/utility/pair/, we know that std::pair
has two member variables, first
and second
.
Why did the STL designers decide to expose two member variables, first
and second
, instead of offering a getFirst()
and a getSecond()
?