mirror of
https://github.com/monero-project/monero.git
synced 2025-05-18 03:10:26 -04:00
Factor out move_it_backward from misc_language.h
Relevant commit from old PR:
330df2952c
This commit is contained in:
parent
7764d69782
commit
1f25aa27c5
2 changed files with 16 additions and 17 deletions
|
@ -37,15 +37,7 @@ namespace epee
|
|||
|
||||
namespace misc_utils
|
||||
{
|
||||
template<typename t_iterator>
|
||||
t_iterator move_it_backward(t_iterator it, size_t count)
|
||||
{
|
||||
while(count--)
|
||||
it--;
|
||||
return it;
|
||||
}
|
||||
|
||||
bool sleep_no_w(long ms );
|
||||
bool sleep_no_w(long ms);
|
||||
|
||||
template <typename T>
|
||||
T get_mid(const T &a, const T &b)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue