VIPRA Documentation
Loading...
Searching...
No Matches
has_tag.hpp
1#pragma once
2
3#include <type_traits>
4
5namespace VIPRA::Util {
6template <typename type_t, typename = int>
7// NOLINTNEXTLINE
8struct has_tag : std::false_type {};
9
10template <typename type_t>
11struct has_tag<type_t, decltype((void)type_t::tag, 0)> : std::true_type {};
12} // namespace VIPRA::Util
Definition has_tag.hpp:8