7#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_FUNCTIONAL_INVOKE_HPP_
8#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_FUNCTIONAL_INVOKE_HPP_
15#include "arene/base/stdlib_choice/enable_if.hpp"
16#include "arene/base/stdlib_choice/forward.hpp"
17#include "arene/base/stdlib_choice/is_base_of.hpp"
18#include "arene/base/stdlib_choice/is_member_function_pointer.hpp"
19#include "arene/base/stdlib_choice/is_member_object_pointer.hpp"
20#include "arene/base/stdlib_choice/remove_cv.hpp"
21#include "arene/base/stdlib_choice/remove_reference.hpp"
35namespace invoke_detail {
90auto invoke_member_function_impl(F func, Object
object, Args&&... args)
noexcept(
115constexpr auto invoke_member_function_impl(F func, Object&&
object, Args&&... args)
noexcept(
132constexpr auto invoke_member_function_impl(F func, Object&&
object, Args&&... args)
noexcept(
159constexpr auto invoke_impl(F&& func, Object&&
object, Args&&... args)
noexcept(
noexcept(
162 ->
decltype(invoke_member_function_impl(
185constexpr auto invoke_data_member_impl(F func, Object&&
object)
noexcept
203constexpr auto invoke_data_member_impl(F func, Object&&
object)
noexcept(
noexcept((*
std::forward<Object>(
object)).*func)
238auto invoke_data_member_impl(F func, Object
object)
noexcept ->
decltype(
object.get().*func) {
239 return object.get().*func;
258constexpr auto invoke_impl(F&& func, Object&&
object)
noexcept(
Definition accumulate.hpp:37
constexpr bool is_invocable_v
Determine if a functor type is invocable with the specified argument types.
constexpr auto invoke(F &&func, Args &&... args) noexcept(is_nothrow_invocable_v< F, Args... >) ->
Implementation of std::invoke from C++23: invokes the specified callable with the specified arguments...
Definition invoke.hpp:281
constexpr bool is_nothrow_invocable_v
Determine if a functor type is no-throw invocable with the specified argument types.
constexpr auto get(array< T, N > &arr) noexcept -> T &
Get a reference to the element at the specified index in the array.
Definition array.hpp:885
typename constraints_impl::constraints< EnableIfs... >::type constraints
Helper used to express template constraints in a consistent way using std::enable_if_t.
Definition constraints.hpp:51
remove_cv_t< remove_reference_t< T > > remove_cvref_t
Backport of std::remove_cvref_t.
Definition remove_cvref.hpp:35
Definition accumulate.hpp:36
typename enable_if< Condition, Type >::type enable_if_t
Type alias to support constraining templates. Is an alias for the specified type if the Condition is ...
Definition enable_if.hpp:41
constexpr auto forward(remove_reference_t< T > &value) noexcept -> T &&
Cast a value to an rvalue if T is an rvalue or rvalue reference, otherwise forward an lvalue referenc...
Definition forward.hpp:24