From http://www.cplusplus.com/reference/utility/pair/, we know that std::pair has two member variables, first and second.
Why did
Getters and setters are usually useful if one thinks that getting or setting the value requires extra logic (changing some internal state). This can then be easily added into the method. In this case std::pair is only used to provide 2 data values. Nothing more, nothing less. And thus, adding the verbosity of a getter and setter would be pointless.