|
Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
|
#include <concepts.hh>
Like std::invocable<>, but also constrains the return type as well.
Somehow, there is no std concept to do this, even though there is a type trait for it.
| CallableT | The type you want to constrain to be callable, and to return ReturnT when called with Args as arguments. |
| ReturnT | The type the callable should return when called. |
| Args | The arguments the callable should accept to return ReturnT. |