mirror of
https://github.com/monero-project/monero.git
synced 2025-01-22 18:54:39 +00:00
330df2952c
The following were removed from misc_language.h: * Includes to `<limit>` and `<functional>` * Macros `STD_TRY_BEGIN` and `STD_TRY_CATCH` * Function `get_max_t_val` * Iterator-related functions `move_it_forward` and `move_it_backward` * struct `less_as_pod` * memory compare function `is_less_as_pod` All the above were unmentioned throughout the rest of the project except for `move_it_backward`, which was mentioned 3 times in `net_peerlist.h`. However, the same exact behaviour can be acheived with `std::advance()`, so I unloaded the iterator logic into a private static inline method `peerlist_manager::get_nth_latest_peer()`. Personally, I think this has the side effect of making the functions `get_white_peer_by_index()`, `get_gray_peer_by_index()`, and `get_random_gray_peer()` clearer in their implementation. |
||
---|---|---|
.. | ||
demo | ||
include | ||
src | ||
CMakeLists.txt | ||
LICENSE.txt | ||
README.md |
epee - is a small library of helpers, wrappers, tools and and so on, used to make my life easier.