[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppPair
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppPair
(C++) std::pair
An STl container class to hold two different data types. std::pair is used for example in the container CppClass std::map.int main() { std::pair<int,double> myPair; myPair.first = 69; myPair.second = 69.69; return 0; }
- include <utility>
Code links
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
