My Project
List of all members
bsl::is_invocable< FUNC, TN > Class Template Referencefinal

If the provided args form a callable, provides the member constant value equal to true. Otherwise the member constant value is false. More...

#include <is_invocable.hpp>

Inherits bsl::integral_constant< T, v >.

Additional Inherited Members

- Public Types inherited from bsl::integral_constant< T, v >
using type = integral_constant< T, v >
 provides the member typedef "type"
 
using value_type = T
 provides the member typedef "value_type"
 
- Static Public Attributes inherited from bsl::integral_constant< T, v >
static constexpr value_type value {v}
 the type T that stores the integral constant
 

Detailed Description

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

If the provided args form a callable, provides the member constant value equal to true. Otherwise the member constant value is false.

#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_is_invocable_overview() noexcept
{
if (bsl::is_invocable<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: