mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-07-09 17:25:18 -06:00
utils/bit_set: add forwarding constructor
Allows bit_set to be constructed the same way as std::bitset
This commit is contained in:
parent
272b9e8cbe
commit
c9a128c056
@ -10,6 +10,7 @@ struct bit_set
|
||||
public:
|
||||
constexpr bit_set() noexcept : m_bitset() {}
|
||||
constexpr bit_set(usz val) noexcept : m_bitset(val) {}
|
||||
explicit constexpr bit_set(auto&&... args) noexcept requires std::is_constructible_v<std::bitset<Bits>, decltype(args)...> : m_bitset(std::forward<decltype(args)>(args)...) {}
|
||||
|
||||
[[nodiscard]] bool test(usz pos, std::source_location src_loc = std::source_location::current()) const
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user