HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Data Structures | Namespaces | Functions
compare.hpp File Reference

Safe numeric comparison between different types. More...

#include "concepts.hpp"
#include "type_traits.hpp"
#include <concepts>
#include <compare>

Go to the source code of this file.

Data Structures

struct  hi::v1::three_way_comparison< Lhs, Rhs >
 

Namespaces

namespace  hi
 geometry/margins.hpp
 
namespace  hi::v1
 The HikoGUI API version 1.
 

Functions

template<arithmetic Lhs, arithmetic Rhs>
constexpr auto hi::v1::three_way_compare (Lhs const &lhs, Rhs const &rhs) noexcept
 Safely compare two arithmetic values to each other.
 

Detailed Description

Safe numeric comparison between different types.