mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
17 lines
392 B
C++
17 lines
392 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<U, T>;
|
|
|
|
template<typename T, typename R>
|
|
concept ConstOrNot = std::is_same_v<R, T> or std::is_same_v<const R, T>;
|