Chris Robinson
7ac336b078
Remove a couple unnecessary overloads
2022-01-04 19:27:29 -08:00
Chris Robinson
966c4498d4
Don't use a template parameter as a variable
...
And try to silence an MSVC warning about a constant overflow.
2020-10-23 19:53:07 -07:00
Chris Robinson
556321f18d
Some cleanup in alspan.h
2020-10-23 19:03:37 -07:00
Chris Robinson
a3ea46f773
Add some missing constexpr attributes
2020-10-20 11:40:27 -07:00
Chris Robinson
047f1666d5
Fix subspan extent calculation
2020-04-28 19:58:17 -07:00
Chris Robinson
46234171d1
Clean up some C++11-isms
2020-03-22 21:15:12 -07:00
Chris Robinson
06b7c63cef
Fix reverse iterators for spans
2019-12-25 21:48:40 -08:00
Chris Robinson
697da8724f
Avoid an extraneous macro and use a simplified type alias
2019-10-27 00:47:33 -07:00
Chris Robinson
94ff2daafc
Use using to avoid extraneous template instantiations
2019-09-29 16:02:25 -07:00
Chris Robinson
79a621ac47
Simplify some REQUIRES uses
2019-09-20 10:59:12 -07:00
Chris Robinson
388928f3aa
Fix some more implicit casts
2019-09-11 05:53:10 -07:00
Chris Robinson
3e499e70fd
Try to improve non-dynamic-extent span construction
2019-08-20 12:31:46 -07:00
Chris Robinson
a9223ae601
Improve subspan default template argument
2019-08-18 23:26:49 -07:00
Chris Robinson
f0408809d6
Cleanup common sources' includes
2019-07-29 09:29:35 -07:00
Chris Robinson
edd75b3b4e
Don't return a blank span when offset==size()
2019-06-25 14:40:25 -07:00
Chris Robinson
4bae4cbafb
Another attempt to fix MSVC 2015
2019-05-30 18:39:51 -07:00
Chris Robinson
1c8dfb55d8
Improve span constructor requirements
...
Particularly, properly account for the const-ness of the data returned by it.
2019-05-30 11:46:48 -07:00
Chris Robinson
1961828d0b
Avoid potentially ambiguous span copy constructor
2019-05-30 10:06:12 -07:00
Chris Robinson
aa4b6afad6
Small cleanup for is_span and is_std_array
2019-05-27 22:01:59 -07:00
Chris Robinson
bac52e9537
Fix default constructor for static-sized spans
2019-05-27 17:48:19 -07:00
Chris Robinson
28fbb5178a
Remove unnecessary assignment operators
2019-05-27 15:56:50 -07:00
Chris Robinson
aad49d666a
Implement static-sized spans, and handle overload requirements
...
Note that span is specialized such that a static-sized span only has a single
data member, making it a suitable replacement for Type (&arg)[Size] style
variables/parameters.
2019-05-27 15:36:10 -07:00
Chris Robinson
f6f220025b
Fix subspan
2019-05-26 21:00:17 -07:00
Chris Robinson
63a130204c
Add a few more methods to the span class
2019-05-26 12:05:43 -07:00
Chris Robinson
857473b6b0
Store the span extents as a pair of pointers
2019-05-24 04:55:38 -07:00
Chris Robinson
517b8158a7
Add a missing include
2019-05-23 08:30:02 -07:00
Chris Robinson
a4af617532
Add a span class to act as a view to contiguous data
2019-05-23 08:15:02 -07:00