StormByte C++ Library 0.0.9999
StormByte is a comprehensive, cross-platform C++ library aimed at easing system programming, configuration management, logging, and database handling tasks. This library provides a unified API that abstracts away the complexities and inconsistencies of different platforms (Windows, Linux).
Loading...
Searching...
No Matches
StormByte::Type::Callable Concept Reference

Concept to check if a type is callable. More...

#include <type_traits.hxx>

Concept definition

template<typename F, typename... Args>
concept StormByte::Type::Callable = std::is_invocable_v<F, Args...>
Concept to check if a type is callable.
Definition type_traits.hxx:372

Detailed Description

Concept to check if a type is callable.

Template Parameters
FType to check.
ArgsArgument types for the call.

A type satisfies Callable if it can be invoked with the given arguments.

template<typename F, typename... Args>
requires Type::Callable<F, Args...>
auto invoke(F&& func, Args&&... args) { return func(std::forward<Args>(args)...); }