NFC: Add Concept for equality modulo references

This commit is contained in:
Nathaniel Wesley Filardo
2021-08-24 11:52:06 +01:00
committed by Nathaniel Wesley Filardo
parent 2e1658fc53
commit bb6e706590

View File

@@ -39,6 +39,13 @@ namespace snmalloc
concept ConceptSame = std::is_same<T, U>::value;
# endif
/**
* Equivalence mod std::remove_reference
*/
template<typename T, typename U>
concept ConceptSameModRef =
ConceptSame<std::remove_reference_t<T>, std::remove_reference_t<U>>;
/**
* Some of the types in snmalloc are circular in their definition and use
* templating as a lazy language to carefully tie knots and only pull on the