HomePhabricator

Add more methods to Span class

Description

Add more methods to Span class

Summary:
This introduces a rudimentary begin(), end(), operator[], and subspan to Span.

This is a partial backport of Core PR13697 : https://github.com/bitcoin/bitcoin/pull/13697/commits/29943a904a11607787d28b1f4288f500bd076dde

Test Plan:

make check

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D4359

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Apr 23 2018, 19:17
deadalnixCommitted on Nov 5 2019, 23:48
deadalnixPushed on Nov 6 2019, 00:00
Reviewer
Restricted Project
Differential Revision
D4359: Add more methods to Span class
Parents
rSTAGINGa5afd2ec6fda: Fix comment layout in client.h
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/13958, tag: phabricator/base/13957