mirror of
https://github.com/vtil-project/VTIL-Core
synced 2026-08-17 08:23:03 -04:00
Making Invocable concept more Intellisense friendly.
This commit is contained in:
parent
3f6e481930
commit
5de9670a16
1 changed files with 2 additions and 2 deletions
|
|
@ -156,9 +156,9 @@ namespace vtil
|
|||
// Functor traits.
|
||||
//
|
||||
template<typename T, typename Ret, typename... Args>
|
||||
concept Invocable = requires( T&& x, Args&&... args ) { Convertible<decltype( x( std::forward<Args>( args )... ) ), Ret>; };
|
||||
concept Invocable = requires( T&& x ) { Convertible<decltype( x( std::declval<Args>()... ) ), Ret>; };
|
||||
template<typename T, typename... Args>
|
||||
concept InvocableWith = requires( T&& x, Args&&... args ) { x( std::forward<Args>( args )... ); };
|
||||
concept InvocableWith = requires( T&& x ) { x( std::declval<Args>()... ); };
|
||||
|
||||
// Container traits.
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue