uatlib
Typedefs | Variables
type.hpp File Reference

Basic types and utilities. More...

#include <concepts>
#include <cstddef>
#include <cstdint>
#include <functional>
Include dependency graph for type.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using uat::uint_t = std::size_t
 Default unsigned integer type.
 
using uat::id_t = std::size_t
 Default type for identifier.
 
using uat::value_t = double
 Default type for price.
 

Variables

template<typename T >
concept uat::hashable
 Concept for types that are hashable. More...
 
template<typename R >
concept uat::region_compatible = hashable<R> && std::equality_comparable<R> && std::copyable<R>
 Concept for types that are compatible as regions.
 

Detailed Description

Basic types and utilities.

Variable Documentation

◆ hashable

template<typename T >
concept uat::hashable
Initial value:
= requires(T a)
{
{
std::hash<T>{}(a)
} -> std::convertible_to<std::size_t>;
}

Concept for types that are hashable.