diff options
| author | Tyge Lovset <[email protected]> | 2023-01-26 19:44:19 +0100 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2023-01-26 19:44:19 +0100 |
| commit | e19a681a1df63cb8af5dc5605b8a6626969032fe (patch) | |
| tree | 05d576ca679feb48e8102502bfd7f2fba1cfc913 /docs | |
| parent | 0c7e627aa27ba42b9a9a4472a4f1cdf857c1a833 (diff) | |
| download | STC-modified-e19a681a1df63cb8af5dc5605b8a6626969032fe.tar.gz STC-modified-e19a681a1df63cb8af5dc5605b8a6626969032fe.zip | |
update cregex_test.c. Rename using_... to use_...
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/cspan_api.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/cspan_api.md b/docs/cspan_api.md index 6da2acca..d1532d7b 100644 --- a/docs/cspan_api.md +++ b/docs/cspan_api.md @@ -10,12 +10,12 @@ See the c++ classes [std::span](https://en.cppreference.com/w/cpp/container/span ```c #include <stc/cspan.h> -using_cspan(SpanType, ValueType, Rank); // define SpanType with ValueType elements. - // Rank is number of dimensions (max 4) +use_cspan(SpanType, ValueType, Rank); // define SpanType with ValueType elements. + // Rank is number of dimensions (max 4) // Shorthands: -using_cspan2(S, ValueType); // define span types S, S2 with ranks 1, 2. -using_cspan3(S, ValueType); // define span types S, S2, S3 with ranks 1, 2, 3. -using_cspan4(S, ValueType); // define span types S, S2, S3, S4 with ranks 1, 2, 3, 4. +use_cspan2(S, ValueType); // define span types S, S2 with ranks 1, 2. +use_cspan3(S, ValueType); // define span types S, S2, S3 with ranks 1, 2, 3. +use_cspan4(S, ValueType); // define span types S, S2, S3, S4 with ranks 1, 2, 3, 4. ``` ## Methods Note that `cspan_multidim()`, `cmake_from*()`, `cspan_atN()`, `and cspan_subspanN()` require a (safe) cast to its span-type @@ -66,7 +66,7 @@ void SpanType_next(SpanTypeN_iter* it); #define i_val float #include <stc/cstack.h> -using_cspan3(Span, float); // Shorthand to define span types Span, Span2, and Span3. +use_cspan3(Span, float); // Shorthand to define span types Span, Span2, and Span3. int main() { |
