Changes in src/ResolvExpr/Alternative.cc [bd4f2e9:50377a4]
- File:
-
- 1 edited
-
src/ResolvExpr/Alternative.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Alternative.cc
rbd4f2e9 r50377a4 18 18 #include <ostream> // for operator<<, ostream, basic_o... 19 19 #include <string> // for operator<<, char_traits, string 20 #include <utility> // for move21 20 22 21 #include "Common/utility.h" // for maybeClone … … 82 81 os << std::endl; 83 82 } 84 85 void splice( AltList& dst, AltList& src ) {86 dst.reserve( dst.size() + src.size() );87 for ( Alternative& alt : src ) {88 dst.push_back( std::move(alt) );89 }90 src.clear();91 }92 93 void spliceBegin( AltList& dst, AltList& src ) {94 splice( src, dst );95 dst.swap( src );96 }97 98 83 } // namespace ResolvExpr 99 84
Note:
See TracChangeset
for help on using the changeset viewer.