Gets the last size attribute trails of the stack. Checking that stack has enough elements is caller's responsibility. Please note that calls to Push may invalidate returned Span object.
| 125 | // Checking that stack has enough elements is caller's responsibility. |
| 126 | // Please note that calls to Push may invalidate returned Span object. |
| 127 | absl::Span<const AttributeTrail> GetAttributeSpan(size_t size) const { |
| 128 | ABSL_DCHECK(HasEnough(size)); |
| 129 | |
| 130 | return absl::Span<const AttributeTrail>(attributes_ - size, size); |
| 131 | } |
| 132 | |
| 133 | // Peeks the last element of the stack. |
| 134 | // Checking that stack is not empty is caller's responsibility. |
no outgoing calls
no test coverage detected