Hello, this is a question from the algorithms stl quiz. I want to know the difference between all first three options. Could you please help me ?
We wish to design a data type that can be used to hold a string, an integer, a double and a pointer to an integer.
Which of the following can be used as an alternative to above required data type.
typedef pair< string, pair< int, pair< double, int * > > > myDataType
typedef pair< string, pair< int, pair< int, int * > > > myDataType;
typedef pair< string, pair< int*, double > > myDataType;
None of these.