[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppTie
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppTie
(C++) boost::tie
Function in the Boost library that can be used to easy working with std::pairs and boost::tuples.int main() { int myInt = 0; std::string myString; boost::tie(myInt,myString) = std::make_pair(69, "Bilderbikkel"); assert(myInt==69); assert(myString=="Bilderbikkel"); }
- include <string>
- include <cassert>
- include <boost/tuple/tuple.hpp>
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
