add last backwards-compatible version

This commit is contained in:
2021-12-14 00:33:46 -07:00
parent 68b10d413b
commit b0dd3f07f3
335 changed files with 4746 additions and 19627 deletions

View File

@@ -111,7 +111,7 @@ namespace pfc {
class bit_array_true : public bit_array
{
public:
bool get(t_size) const {return true;}
bool get(t_size n) const {return true;}
t_size find(bool val,t_size start,t_ssize count) const
{return val ? start : start+count;}
};
@@ -119,7 +119,7 @@ namespace pfc {
class bit_array_false : public bit_array
{
public:
bool get(t_size) const {return false;}
bool get(t_size n) const {return false;}
t_size find(bool val,t_size start,t_ssize count) const
{return val ? start+count : start;}
};
@@ -129,7 +129,7 @@ namespace pfc {
bool val;
public:
bit_array_val(bool v) : val(v) {}
bool get(t_size) const {return val;}
bool get(t_size n) const {return val;}
t_size find(bool p_val,t_size start,t_ssize count) const
{return val==p_val ? start : start+count;}
};
@@ -178,8 +178,6 @@ namespace pfc {
void set(t_size n, bool val);
bool get(t_size n) const;
size_t size() const {return m_count;}
};