diff --git a/misc/flagenumclass.h b/misc/flagenumclass.h index e7e4a38..9078dc5 100644 --- a/misc/flagenumclass.h +++ b/misc/flagenumclass.h @@ -9,8 +9,7 @@ namespace CppUtilities { * \brief The IsFlagEnumClass class is used to decide whether to enable operations for flag enums for \tp T. * \remarks This class is still experimental and might be changed or removed in future minior releases. */ -template struct IsFlagEnumClass : public Traits::Bool { -}; +template struct IsFlagEnumClass : public Traits::Bool {}; // clang-format off /*! diff --git a/misc/traits.h b/misc/traits.h index 26e658d..097bae4 100644 --- a/misc/traits.h +++ b/misc/traits.h @@ -20,32 +20,25 @@ enum class Enabler {}; template using Conditional = typename std::conditional::type; /// \brief Wraps a static boolean constant. -template struct Bool : std::integral_constant { -}; +template struct Bool : std::integral_constant {}; /// \brief Negates the specified value. template using Not = Bool; /// \brief Evaluates to Bool if at least one of the specified conditions is true; otherwise evaluates to Bool. -template struct Any : Bool { -}; +template struct Any : Bool {}; /// \brief Evaluates to Bool if at least one of the specified conditions is true; otherwise evaluates to Bool. -template struct Any : Conditional, Any> { -}; +template struct Any : Conditional, Any> {}; /// \brief Evaluates to Bool if all specified conditions are true; otherwise evaluates to Bool. -template struct All : Bool { -}; +template struct All : Bool {}; /// \brief Evaluates to Bool if all specified conditions are true; otherwise evaluates to Bool. -template struct All : Conditional, Bool> { -}; +template struct All : Conditional, Bool> {}; /// \brief Evaluates to Bool if none of the specified conditions are true; otherwise evaluates to Bool. -template struct None : Bool { -}; +template struct None : Bool {}; /// \brief Evaluates to Bool if none of the specified conditions are true; otherwise evaluates to Bool. -template struct None : Conditional, None> { -}; +template struct None : Conditional, None> {}; /// \brief Shortcut for std::enable_if to omit ::value and ::type. template using EnableIf = typename std::enable_if::value, Detail::Enabler>::type; @@ -59,59 +52,46 @@ template using DisableIfAny = typename std::enable_if class Template> struct IsSpecializationOfHelper : Bool { -}; -template