Span: Make name of dynamic span tag consistent with C++ standard.

pull/7828/head
Vincent Coubard 2018-08-20 10:29:43 +01:00
parent eba1dc6dd6
commit 43170d21bf
1 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ namespace mbed {
* If the type use this value then the size of the array is stored in the object
* at runtime.
*/
#define SPAN_DYNAMIC_SIZE -1
#define SPAN_DYNAMIC_EXTENT -1
/**
* View to an array.
@ -55,7 +55,7 @@ namespace mbed {
* SPAN_DYNAMIC_SIZE is special as it allows construction of Span objects of
* any size (set at runtime).
*/
template<typename T, ptrdiff_t Size = SPAN_DYNAMIC_SIZE>
template<typename T, ptrdiff_t Size = SPAN_DYNAMIC_EXTENT>
struct Span {
MBED_STATIC_ASSERT(Size >= 0, "Invalid size for an ArrayView");
@ -220,7 +220,7 @@ private:
* Span specialisation that handle dynamic array size.
*/
template<typename T>
struct Span<T, SPAN_DYNAMIC_SIZE> {
struct Span<T, SPAN_DYNAMIC_EXTENT> {
/**
* Construct a view to an empty array.