mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 14:49:53 +08:00
Added += and -= operators
This commit is contained in:
parent
aca086b22d
commit
09705bdd7f
@ -74,6 +74,18 @@ namespace etl
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline debug_count& operator +=(int32_t n)
|
||||
{
|
||||
count += n;
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline debug_count& operator -=(int32_t n)
|
||||
{
|
||||
count -= n;
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline operator int32_t()
|
||||
{
|
||||
return count;
|
||||
@ -101,6 +113,16 @@ namespace etl
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline debug_count& operator +=(int32_t /*n*/)
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline debug_count& operator -=(int32_t /*n*/)
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline operator int32_t()
|
||||
{
|
||||
return 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user