Ticket #6726: insert.hpp.patch
File insert.hpp.patch, 758 bytes (added by , 11 years ago) |
---|
-
insert.hpp
35 35 return on; 36 36 } 37 37 38 // for associative containers 39 template< class Container, class Range > 40 inline Container& insert( Container& on, 41 const Range& from ) 42 { 43 BOOST_RANGE_CONCEPT_ASSERT(( ForwardRangeConcept<Container> )); 44 BOOST_RANGE_CONCEPT_ASSERT(( SinglePassRangeConcept<Range> )); 45 BOOST_ASSERT( (void*)&on != (void*)&from && 46 "cannot copy from a container to itself" ); 47 on.insert( boost::begin(from), boost::end(from) ); 48 return on; 49 } 50 38 51 } // namespace range 39 52 using range::insert; 40 53 } // namespace boost