IRSOL
C++ code implementing socket server for interacting with Baumer camera.
traits.hpp
Go to the documentation of this file.
1
11#pragma once
12
13#include "irsol/types.hpp"
14
15#include <type_traits>
16#include <variant>
17
27namespace irsol {
28
37namespace traits {
38
52template<typename T>
53struct always_false : std::false_type
54{};
55
75template<typename T, typename VariantT>
77
78template<typename T, typename... VariantClassesT>
79struct is_type_in_variant<T, std::variant<VariantClassesT...>>
80 : std::disjunction<std::is_same<std::decay_t<T>, VariantClassesT>...>
81{};
82
105template<typename T, typename VariantT>
107
108} // namespace traits
109} // namespace irsol
constexpr bool is_type_in_variant_v
Variable template shorthand for is_type_in_variant.
Definition traits.hpp:106
Always evaluates to false, regardless of the type.
Definition traits.hpp:54
Checks whether a type T is one of the types in a std::variant.
Definition traits.hpp:76
Core type definitions for networking, time handling, and protocol values used throughout the irsol li...