My Project
bsl::invoke_result< FUNC, TN > Class Template Referencefinal

Provides the member typedef type which is the result of calling bsl::invoke<F, ARGS...> if the provided template arguments are valid. More...

#include <invoke_result.hpp>

Inherits invoke_traits< void, FUNC, TN... >.

Detailed Description

template<typename FUNC, typename... TN>
class bsl::invoke_result< FUNC, TN >

Provides the member typedef type which is the result of calling bsl::invoke<F, ARGS...> if the provided template arguments are valid.

#include <bsl/is_same.hpp>
#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_invoke_result_overview() noexcept
{
if (bsl::is_same<bsl::invoke_result_t<bool()>, bool>::value) {
bsl::print() << "success\n";
}
}
}
Template Parameters
FUNCthe type that defines the function being called
TNthe types that define the arguments passed to the provided function when called.

The documentation for this class was generated from the following file: