Skip to content

Commit

Permalink
✨ Dedicated bit_vector type.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePhD committed Aug 1, 2022
1 parent 643013d commit c104bee
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions include/itsy/small_bit_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,30 @@ namespace bitsy
small_bit_vector&
operator=(small_bit_vector&&) = default;
};

template<typename _Type, typename _Allocator = ::std::allocator<_Type>>
class bit_vector : public basic_small_bit_vector<_Type, 0, _Allocator, false>
{
private:
template<typename, ::std::size_t, typename, bool>
friend class basic_small_bit_vector;
template<typename, ::std::size_t, typename>
friend class packed_small_bit_vector;
template<typename, ::std::size_t, typename>
friend class small_bit_vector;

using __base_t = basic_small_bit_vector<_Type, 0, _Allocator, false>;

public:
using __base_t::__base_t;
bit_vector(const bit_vector&) = default;
bit_vector(bit_vector&&) = default;

bit_vector&
operator=(const bit_vector&) = default;
bit_vector&
operator=(bit_vector&&) = default;
};
} // namespace bitsy

#undef ITSY_BITSY_ALLOCATOR_CONSTEXPR
Expand Down

0 comments on commit c104bee

Please sign in to comment.