diff options
author | 2022-04-14 10:59:53 +0000 | |
---|---|---|
committer | 2022-04-14 17:25:01 +0000 | |
commit | 495311c865d1f4e08d71a2dd2a319b14c5f0409a (patch) | |
tree | 1bc6084161dc0e6885753c5851ce9fa7e7986fd8 /libartbase/base/bit_string.h | |
parent | 998c2655397d281c8abcc4151290d3f33b7c604f (diff) |
Modernize libartbase/ usage of <type_traits>...
... and other standard library templates.
Use `std::*_t<...>` and `std::*_v<...>` instead of
`std::*<...>::type` and `std::*<...>::value`.
Remove some unnecessary "typename" qualifiers and second
arguments to `static_assert()`.
Test: Rely on TreeHugger.
Change-Id: I4dc8e6fd905c60f652d3ac74bdf3d275b98daee8
Diffstat (limited to 'libartbase/base/bit_string.h')
-rw-r--r-- | libartbase/base/bit_string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libartbase/base/bit_string.h b/libartbase/base/bit_string.h index d995f8dbb1..cce6fe0743 100644 --- a/libartbase/base/bit_string.h +++ b/libartbase/base/bit_string.h @@ -38,7 +38,7 @@ inline std::ostream& operator<<(std::ostream& os, const BitStringChar& bc); */ struct BitStringChar { using StorageType = uint32_t; - static_assert(std::is_unsigned<StorageType>::value, "BitStringChar::StorageType must be unsigned"); + static_assert(std::is_unsigned_v<StorageType>, "BitStringChar::StorageType must be unsigned"); // BitStringChars are always zero-initialized by default. Equivalent to BitStringChar(0,0). BitStringChar() : data_(0u), bitlength_(0u) { } |