Lines Matching refs:T
25 template<typename T>
26 inline constexpr bool G_IS_NUM = std::is_integral_v<T> && !std::is_same_v<T, bool>;
28 template<typename T>
29 inline constexpr bool G_IS_BOOL = std::is_same_v<bool, T>;
31 template<typename T>
32 inline constexpr bool G_IS_STR = (std::is_same_v<char *, std::decay_t<T>> ||
33 std::is_same_v<const char *, std::decay_t<T>> || std::is_same_v<std::string, T>);
35 template<typename T>
36 inline constexpr bool G_IS_PRINTABLE = (G_IS_NUM<T> || G_IS_BOOL<T> || G_IS_STR<T>);
38 template<typename T>
39 inline constexpr bool G_IS_BASE_TYPE = (G_IS_NUM<T> || G_IS_BOOL<T> || G_IS_STR<T>);
41 template<typename T>
44 template<typename T>
45 struct IsVector<std::vector<T>> : std::true_type {};
47 template<typename T>
48 constexpr bool G_IS_VECTOR = IsVector<T>::value;
50 template<bool b, typename T>
51 using isMatch = typename std::enable_if_t<b, T>;
53 template<typename T>
54 using RemoveCvRef = std::remove_cv_t<std::remove_reference_t<T>>;
56 template<typename T>
58 static_assert(G_IS_BASE_TYPE<T>);
59 …using type = std::conditional_t<G_IS_NUM<T>, int, std::conditional_t<G_IS_STR<T>, std::string, boo…
62 template<typename T>
63 using StandardType = typename StandardTypeHelper<T>::type;
65 template<typename T>
66 using OptStandardType = std::optional<StandardType<RemoveCvRef<T>>>;
68 template<std::size_t idx, typename...T>
69 inline auto &Get(T &&...t)