File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 30
30
31
31
/* * A Span is an object that can refer to a contiguous sequence of objects.
32
32
*
33
- * It implements a subset of C++20's std::span.
33
+ * This file implements a subset of C++20's std::span. It can be considered
34
+ * temporary compatibility code until C++20 and is designed to be a
35
+ * self-contained abstraction without depending on other project files. For this
36
+ * reason, Clang lifetimebound is defined here instead of including
37
+ * <attributes.h>, which also defines it.
34
38
*
35
39
* Things to be aware of when writing code that deals with Spans:
36
40
*
60
64
* types that expose a data() and size() member function), functions that
61
65
* accept a Span as input parameter can be called with any compatible
62
66
* range-like object. For example, this works:
63
- *
67
+ *
64
68
* void Foo(Span<const int> arg);
65
69
*
66
70
* Foo(std::vector<int>{1, 2, 3}); // Works
You can’t perform that action at this time.
0 commit comments