GuillaumeDua / CppShelf

Collection of powerfuls - C++ Single-Header Libraries Files
https://guillaumedua.github.io/CppShelf/
MIT License
9 stars 1 forks source link

[functional] member_pointer_class_t #225

Open GuillaumeDua opened 3 months ago

GuillaumeDua commented 3 months ago

see https://godbolt.org/z/d9dnq1MW4

template <concepts::member_pointer T>
class invoke_result<T> {
   using class_t = type_traits::member_pointer_class_type_t<T>;
public:
    using type = std::invoke_result_t<T, class_t>;
}