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