mirror of
https://github.com/ETLCPP/etl.git
synced 2026-10-28 18:07:10 +08:00
Added size & reset virtuals
This commit is contained in:
parent
f349ca416d
commit
8e838b6d59
10
ibitset.h
10
ibitset.h
@ -53,6 +53,11 @@ namespace etl
|
||||
{
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
/// The size of the bitset.
|
||||
//*************************************************************************
|
||||
virtual size_t size() const = 0;
|
||||
|
||||
//*************************************************************************
|
||||
/// Check the bit at the position.
|
||||
//*************************************************************************
|
||||
@ -68,6 +73,11 @@ namespace etl
|
||||
//*************************************************************************
|
||||
virtual ibitset& reset(size_t position) = 0;
|
||||
|
||||
//*************************************************************************
|
||||
/// Reset all the bits.
|
||||
//*************************************************************************
|
||||
virtual ibitset& reset() = 0;
|
||||
|
||||
//*************************************************************************
|
||||
/// Finds the first bit in the specified state.
|
||||
///\param state The state to search for.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user