Changeset 432ce7a for src/ResolvExpr/Candidate.hpp
- Timestamp:
- Jun 11, 2019, 5:52:50 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 6625727
- Parents:
- 4b7cce6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Candidate.hpp
r4b7cce6 r432ce7a 70 70 using CandidateList = std::vector< CandidateRef >; 71 71 72 /// Splice src after dst, clearing src 73 static inline void splice( CandidateList & dst, CandidateList & src ) { 74 dst.reserve( dst.size() + src.size() ); 75 for ( CandidateRef & r : src ) { dst.emplace_back( std::move( r ) ); } 76 src.clear(); 77 } 78 79 /// Splice src before dst 80 static inline void spliceBegin( CandidateList & dst, CandidateList & src ) { 81 splice( src, dst ); 82 dst.swap( src ); 83 } 84 72 85 /// Sum the cost of a list of candidates 73 86 static inline Cost sumCost( const CandidateList & candidates ) {
Note: See TracChangeset
for help on using the changeset viewer.