Changeset 785 for trunk/pdns/pdns/syncres.hh
- Timestamp:
- 04/28/06 11:39:49 (4 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/syncres.hh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/syncres.hh
r780 r785 412 412 413 413 extern RecursorStats g_stats; 414 415 416 template<typename Index> 417 std::pair<typename Index::iterator,bool> 418 replacing_insert(Index& i,const typename Index::value_type& x) 419 { 420 std::pair<typename Index::iterator,bool> res=i.insert(x); 421 if(!res.second)res.second=i.replace(res.first,x); 422 return res; 423 } 424 414 425 #endif