mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
20 lines
456 B
C++
20 lines
456 B
C++
#pragma once
|
|
|
|
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
#include <type_traits>
|
|
|
|
template<typename T, typename U>
|
|
concept same_as = std::is_same_v<T, U>;
|
|
|
|
template<typename T, typename U>
|
|
concept convertible_to = std::is_convertible_v<T, U>;
|
|
|
|
template<typename T, typename R>
|
|
concept ConstOrNot = std::is_same_v<R, T> or std::is_same_v<const R, T>;
|
|
|
|
template<typename T>
|
|
concept Integral = std::is_integral_v<T>;
|