aboutsummaryrefslogtreecommitdiff
path: root/src/span.h
Commit message (Collapse)AuthorAgeFilesLines
* Add MakeUCharSpan, to help constructing Span<[const] unsigned char>Pieter Wuille2020-07-301-0/+12
| | | | Based on a suggestion by Russell Yanofsky.
* span: Add Span::empty() and use it in script/descriptorMarcoFalke2020-07-191-0/+1
|
* doc: Document Span pitfallsPieter Wuille2020-06-261-0/+56
|
* Add sanity check asserts to span when -DDEBUGPieter Wuille2020-06-171-10/+48
|
* Add Span constructors for arrays and vectorsPieter Wuille2020-05-121-13/+21
|
* Make pointer-based Span construction saferPieter Wuille2020-05-121-2/+15
| | | | | | This prevents constructing a Span<A> given two pointers into an array of B (where B is a subclass of A), at least without explicit cast to pointers to A.
* Make Span size type unsignedPieter Wuille2020-05-121-8/+9
| | | | This matches a change in the C++20 std::span proposal.
* Merge #18591: Add C++17 build to TravisWladimir J. van der Laan2020-04-301-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c31cbe7cfefc18123eb85ffb2ce509748435efde Add C++17 test to Travis (Pieter Wuille) 7829685e27aae25efb32e07368175c8f664b2218 Add configure option for c++17 (Pieter Wuille) 0fbde488b24f62b4bbbde216647941dcac65c81a Support conversion between Spans of compatible types (Pieter Wuille) 7cbfebbf3df0d26f518811e0bfb7abf270c83e37 Update ax_cxx_compile_stdcxx.m4 (Pieter Wuille) Pull request description: This adds a `--enable-c++17` option to the configure script, fixes the only C++17 incompatibility (with a commit taken from #18468), and adds a Travis test for it. This is all off by default, and release builds remain C++11. It implements the first step of the plan in https://github.com/bitcoin/bitcoin/issues/16684. ACKs for top commit: elichai: tACK c31cbe7cfefc18123eb85ffb2ce509748435efde practicalswift: Tested ACK c31cbe7cfefc18123eb85ffb2ce509748435efde hebasto: ACK c31cbe7cfefc18123eb85ffb2ce509748435efde, tested on Linux Mint 19.3 both C++11 and C++17 modes. Compiled and passed tests locally. Tree-SHA512: a4b00776dbceef9c12abbb404c6bcd48f7916ce24c8c7a14116355f64e817578b7fcddbedd5ce435322319d1e4de43429b68553f4d96d970c308fe3e3e59b9d1
| * Support conversion between Spans of compatible typesPieter Wuille2020-04-111-0/+19
| |
* | scripted-diff: Bump copyright headersMarcoFalke2020-04-161-1/+1
|/ | | | | | -BEGIN VERIFY SCRIPT- ./contrib/devtools/copyright_header.py update ./ -END VERIFY SCRIPT-
* Make VerifyWitnessProgram use a Span stackPieter Wuille2020-03-231-0/+14
| | | | | This allows for very cheap transformations on the range of elements that are to be passed to ExecuteWitnessScript.
* Add more methods to Span classPieter Wuille2018-07-271-0/+20
| | | | This introduces a rudimentary begin(), end(), operator[], and subspan to Span.
* Add Slice: a (pointer, size) array view that acts like a containerPieter Wuille2018-04-051-0/+40