rippled
Classes | Functions
ripple::PeerFinder::detail Namespace Reference

Classes

class  LivecacheBase
 

Functions

template<class Target , class HopContainer >
std::size_t handout_one (Target &t, HopContainer &h)
 Try to insert one object in the target. More...
 

Function Documentation

◆ handout_one()

template<class Target , class HopContainer >
std::size_t ripple::PeerFinder::detail::handout_one ( Target &  t,
HopContainer &  h 
)

Try to insert one object in the target.

When an item is handed out it is moved to the end of the container.

Returns
The number of objects inserted

Definition at line 44 of file Handouts.h.