Return-To-The-Roots / s25client

Return To The Roots (Settlers II(R) Clone)
http://www.rttr.info
GNU General Public License v2.0
477 stars 75 forks source link

Add `indexOf_if` and refactor `helpers::` related functions #1671

Closed Flamefire closed 4 months ago

Flamefire commented 4 months ago

We recently needed to get the index of an element matching a condition. So add that similar to the other functions in helpers

Using the opportunity to replace some constructs using if constexpr and replace remaining std::find* calls by helpers::

Gets rid of boost::void_t which is now in std