diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-29 19:29:08 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:58 +0200 |
commit | 40c828455d094854d9e531fc7dd0d1a0244957b7 (patch) | |
tree | 5e9e7e5156f0907d58791b6e7e7f3adff44bb4b3 /src/DI/concepts.hpp | |
parent | a8fbce594f87554b48da661c7939559be801da13 (diff) |
refactor: make container use concepts
Diffstat (limited to 'src/DI/concepts.hpp')
-rw-r--r-- | src/DI/concepts.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/DI/concepts.hpp b/src/DI/concepts.hpp new file mode 100644 index 0000000..12be546 --- /dev/null +++ b/src/DI/concepts.hpp @@ -0,0 +1,11 @@ +#pragma once + +#include "type_traits.hpp" + +#include <type_traits> + +template <typename Type> +concept Function = is_func_v<Type>; + +template <typename Type> +concept Abstract = std::is_abstract_v<Type>; |