You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -192,6 +192,10 @@ To construct a span from a container with compilers that cannot constrain such a
192
192
Configuration
193
193
-------------
194
194
195
+
### Tweak header
196
+
197
+
If the compiler supports [`__has_include()`](https://en.cppreference.com/w/cpp/preprocessor/include), *span lite* supports the [tweak header](https://vector-of-bool.github.io/2020/10/04/lib-configuration.html) mechanism. Provide your *tweak header* as `nonstd/span.tweak.hpp` in a folder in the include-search-path. In the tweak header, provide definitions as documented below, like `#define span_CONFIG_NO_EXCEPTIONS 1`.
198
+
195
199
### Standard selection macro
196
200
197
201
\-D<b>span\_CPLUSPLUS</b>=199711L
@@ -433,6 +437,7 @@ span<>: Allows to construct from a const C-array with size via decay to pointer
433
437
span<>: Allows to construct from a std::initializer_list<> (C++11)
434
438
span<>: Allows to construct from a std::array<> (C++11)
435
439
span<>: Allows to construct from a std::array<> with const data (C++11, span_FEATURE_CONSTR..._ELEMENT_TYPE=1)
440
+
span<>: Allows to construct from an empty std::array<> (C++11)
436
441
span<>: Allows to construct from a container (std::vector<>)
437
442
span<>: Allows to tag-construct from a container (std::vector<>)
438
443
span<>: Allows to tag-construct from a const container (std::vector<>)
@@ -505,4 +510,5 @@ tuple_size<>: Allows to obtain the number of elements via std::tuple_size<> (C++
505
510
tuple_element<>: Allows to obtain an element via std::tuple_element<> (C++11)
506
511
tuple_element<>: Allows to obtain an element via std::tuple_element_t<> (C++11)
507
512
get<I>(spn): Allows to access an element via std::get<>()
513
+
tweak header: reads tweak header if supported [tweak]
0 commit comments