summaryrefslogtreecommitdiffstats
path: root/src/common/intrusive_red_black_tree.h
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-09-24 22:44:25 +0200
committerGitHub <noreply@github.com>2021-09-24 22:44:25 +0200
commit9a53173e4de2194a128a33764d3f50f02f358efa (patch)
tree6f6cf76701e48f6c83e105ab06b2e6f82627dbf9 /src/common/intrusive_red_black_tree.h
parentMerge pull request #7069 from lioncash/uuid (diff)
parentCMakeLists: Update to clang format version 12 (diff)
downloadyuzu-9a53173e4de2194a128a33764d3f50f02f358efa.tar
yuzu-9a53173e4de2194a128a33764d3f50f02f358efa.tar.gz
yuzu-9a53173e4de2194a128a33764d3f50f02f358efa.tar.bz2
yuzu-9a53173e4de2194a128a33764d3f50f02f358efa.tar.lz
yuzu-9a53173e4de2194a128a33764d3f50f02f358efa.tar.xz
yuzu-9a53173e4de2194a128a33764d3f50f02f358efa.tar.zst
yuzu-9a53173e4de2194a128a33764d3f50f02f358efa.zip
Diffstat (limited to 'src/common/intrusive_red_black_tree.h')
-rw-r--r--src/common/intrusive_red_black_tree.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/common/intrusive_red_black_tree.h b/src/common/intrusive_red_black_tree.h
index 1f696fe80..3173cc449 100644
--- a/src/common/intrusive_red_black_tree.h
+++ b/src/common/intrusive_red_black_tree.h
@@ -235,20 +235,19 @@ public:
template <typename T>
concept HasLightCompareType = requires {
- { std::is_same<typename T::LightCompareType, void>::value }
- ->std::convertible_to<bool>;
+ { std::is_same<typename T::LightCompareType, void>::value } -> std::convertible_to<bool>;
};
namespace impl {
-template <typename T, typename Default>
-consteval auto* GetLightCompareType() {
- if constexpr (HasLightCompareType<T>) {
- return static_cast<typename T::LightCompareType*>(nullptr);
- } else {
- return static_cast<Default*>(nullptr);
+ template <typename T, typename Default>
+ consteval auto* GetLightCompareType() {
+ if constexpr (HasLightCompareType<T>) {
+ return static_cast<typename T::LightCompareType*>(nullptr);
+ } else {
+ return static_cast<Default*>(nullptr);
+ }
}
-}
} // namespace impl