12#ifndef UTIL_CONCEPTS_HPP
13#define UTIL_CONCEPTS_HPP
17#include <nlohmann/json.hpp>
44template <
typename T,
typename... Args>
46 T(std::forward<Args>(args)...);
72 { t.size() } -> std::convertible_to<size_t>;
75 requires std::is_same_v<typename T::value_type, std::pair<std::string, std::string>>;
86 { a == b } -> std::convertible_to<bool>;
87 { a != b } -> std::convertible_to<bool>;
98 { std::hash<T>{}(a) } -> std::convertible_to<size_t>;
109 { a < b } -> std::convertible_to<bool>;
110 { a <= b } -> std::convertible_to<bool>;
111 { a > b } -> std::convertible_to<bool>;
112 { a >= b } -> std::convertible_to<bool>;
123 { t.ToString() } -> std::convertible_to<std::string>;
Matches types that can be compared for equality.
Definition Concepts.hpp:85
Matches types that can be constructed from the given arguments.
Definition Concepts.hpp:45
Matches types that behave like LogEvent's EventItems collection.
Definition Concepts.hpp:71
Matches types that provide a to_string() method.
Definition Concepts.hpp:122
Matches types that can be used as hash map keys.
Definition Concepts.hpp:97
Matches types that support ordering operations.
Definition Concepts.hpp:108
Utility components and helper types for the LogViewer application.