15 Commits

Author SHA1 Message Date
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