monero/contrib/epee
Jeffrey 330df2952c Trim fat from misc_language.h and refactor net_peerlist.h
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.
2022-03-07 11:24:34 -06:00
..
demo cmake: set 3.5 as minimum version 2021-04-27 11:02:05 +02:00
include Trim fat from misc_language.h and refactor net_peerlist.h 2022-03-07 11:24:34 -06:00
src Remove pragma_comp_defs.h and its includes 2022-03-06 11:36:58 -06:00
CMakeLists.txt Update copyright year to 2020 2020-05-06 22:36:54 -04:00
LICENSE.txt year updated in license 2015-01-02 18:52:46 +02:00
README.md year updated in license 2015-01-02 18:52:46 +02:00

epee - is a small library of helpers, wrappers, tools and and so on, used to make my life easier.