aboutsummaryrefslogtreecommitdiff
path: root/include/openvic-dataloader/detail/Utility.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/openvic-dataloader/detail/Utility.hpp')
-rw-r--r--include/openvic-dataloader/detail/Utility.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/openvic-dataloader/detail/Utility.hpp b/include/openvic-dataloader/detail/Utility.hpp
index 8d9e159..3da21bd 100644
--- a/include/openvic-dataloader/detail/Utility.hpp
+++ b/include/openvic-dataloader/detail/Utility.hpp
@@ -86,4 +86,7 @@ namespace ovdl::detail {
template<typename Type, template<typename...> typename Template>
static constexpr auto is_instance_of_v = is_instance_of<Type, Template>::value;
+
+ template<typename T, template<typename...> typename Template>
+ concept InstanceOf = is_instance_of_v<std::remove_cv_t<std::remove_reference_t<T>>, Template>;
} \ No newline at end of file