Changeset 3345 for trunk/test/segment.cc


Ignore:
Timestamp:
Nov 6, 2014, 1:30:45 PM (8 years ago)
Author:
Peter
Message:

new function SegmentSet::insert_merge(first, last). closes #818

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/segment.cc

    r3344 r3345  
    199199    suite.err() << "error: set.size(): " << set.size() << " expected 1\n";
    200200  set.insert_merge(set.end(), Segment<double>(200, 1000));
     201
     202  SegmentSet<double> set2;
     203  set2.insert_merge(set.begin(), set.end());
     204  std::vector<Segment<double> > vec(set.size());
     205  std::copy(set.begin(), set.end(), vec.begin());
     206  set2.insert_merge(vec.begin(), vec.end());
    201207}
    202208
Note: See TracChangeset for help on using the changeset viewer.