(self, val)
| 433 | """ |
| 434 | |
| 435 | def __init__(self, val): |
| 436 | self.val = val |
| 437 | try: |
| 438 | # libstdc++ internals |
| 439 | self.index = val['_M_index'] |
| 440 | except gdb.error: |
| 441 | # fallback for other C++ standard libraries |
| 442 | self.index = gdb.parse_and_eval(f"{for_evaluation(val)}.index()") |
| 443 | try: |
| 444 | self.value_type = self.val.type.template_argument(self.index) |
| 445 | except RuntimeError: |
| 446 | # Index out of bounds |
| 447 | self.value_type = None |
| 448 | |
| 449 | @property |
| 450 | def value(self): |
nothing calls this directly
no test coverage detected