Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Alternative.cc

    rbd4f2e9 r50377a4  
    1818#include <ostream>                       // for operator<<, ostream, basic_o...
    1919#include <string>                        // for operator<<, char_traits, string
    20 #include <utility>                       // for move
    2120
    2221#include "Common/utility.h"              // for maybeClone
     
    8281                os << std::endl;
    8382        }
    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 
    9883} // namespace ResolvExpr
    9984
Note: See TracChangeset for help on using the changeset viewer.