fork download
  1. #define BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE
  2. #include <boost/move/utility.hpp>
  3. #include <utility>
  4. #include <deque>
  5. #include <map>
  6. #include <vector>
  7. #include <boost/date_time/posix_time/posix_time_types.hpp>
  8.  
  9. using namespace std;
  10.  
  11. int main() {
  12. typedef std::pair<int, std::deque<int>> FirstPair;
  13. typedef std::vector<FirstPair> VectorFirstPair;
  14. typedef std::pair<boost::posix_time::time_duration, VectorFirstPair> SecondPair;
  15. typedef std::map<boost::posix_time::time_duration, SecondPair> Map;
  16. Map mapInstance;
  17. SecondPair newElement = make_pair(boost::posix_time::not_a_date_time, VectorFirstPair());
  18. mapInstance.insert(make_pair(boost::posix_time::seconds(10), move(newElement))).first;
  19. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
Standard output is empty