mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-02 13:06:57 +00:00
scylla-gdb.py: boost_intrusive_list: add __len__() operator
Message-Id: <20200818141340.2352666-1-bdenes@scylladb.com>
This commit is contained in:
committed by
Tomasz Grabiec
parent
fb6c011b52
commit
077dc7c021
@@ -75,6 +75,9 @@ class intrusive_list:
|
||||
def __bool__(self):
|
||||
return self.__nonzero__()
|
||||
|
||||
def __len__(self):
|
||||
return len(list(self))
|
||||
|
||||
|
||||
class std_optional:
|
||||
def __init__(self, ref):
|
||||
|
||||
Reference in New Issue
Block a user