From c150f92d4adccb1bb452c29c7d42cfd6e6ccb6d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 6 Jul 2012 02:22:33 +0200 Subject: [PATCH] Added complement operator to Set. --- src/Set.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Set.h b/src/Set.h index 2e077ccb1..439e9a56c 100644 --- a/src/Set.h +++ b/src/Set.h @@ -92,6 +92,11 @@ template class Set { return *this; } + /** @brief Set complement */ + inline constexpr Set operator~() const { + return Set(~value); + } + /** @brief Value in underlying type */ inline constexpr explicit operator UnderlyingType() const { return value;