My Project
Functions
invoke.hpp File Reference
#include "details/invoke_impl.hpp"
#include "forward.hpp"

Go to the source code of this file.

Functions

template<typename FUNC , typename... TN>
constexpr auto bsl::invoke (FUNC &&f, TN &&... tn) noexcept(//-- noexcept(details::invoke_impl< FUNC, TN... >::call(//-- bsl::forward< FUNC >(f),//-- bsl::forward< TN >(tn)...))) -> decltype(details::invoke_impl< FUNC, TN... >::call(bsl::forward< FUNC >(f), bsl::forward< TN >(tn)...))
 Invokes the callable object "f" with arguments "tn". More...
 

Detailed Description

Function Documentation

◆ invoke()

template<typename FUNC , typename... TN>
constexpr auto bsl::invoke ( FUNC &&  f,
TN &&...  tn 
) -> decltype(details::invoke_impl<FUNC, TN...>::call( bsl::forward<FUNC>(f), bsl::forward<TN>(tn)...))
noexcept

Invokes the callable object "f" with arguments "tn".

Template Parameters
FUNCthe type that defines the function being called
TNthe types that define the arguments passed to the provided function when called.
Parameters
fa pointer to the function being called.
tnthe arguments passed to the function f when called.
Returns
Returns the result of calling "f" with "tn"
Exceptions
throwsif the provided function throws