From bb6e706590540da260e578a804f0e703b5ce2957 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Tue, 24 Aug 2021 11:52:06 +0100 Subject: [PATCH] NFC: Add Concept for equality modulo references --- src/ds/concept.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ds/concept.h b/src/ds/concept.h index b49545c..2e48244 100644 --- a/src/ds/concept.h +++ b/src/ds/concept.h @@ -39,6 +39,13 @@ namespace snmalloc concept ConceptSame = std::is_same::value; # endif + /** + * Equivalence mod std::remove_reference + */ + template + concept ConceptSameModRef = + ConceptSame, std::remove_reference_t>; + /** * 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