[INVOKE] added is_invocable_r, invoke_r, made everything constexpr and...
[INVOKE] added is_invocable_r, invoke_r, made everything constexpr and conditionally noexcept (#2458)
* - added dlib::invoke_r()
- added dlib::is_invocable_r<>
- made everything constexpr and conditionally noexcept !
- added tests
This has required a refactor of dlib::invoke since std::mem_fn is not constexpr in c++11
* - !std::is_function replaced with std::is_object. Let's be a bit more precise
* - made dlib::apply constexpr and conditionally noexcept
Co-authored-by:
pf <pf@me>
Showing
Please register or sign in to comment