|
CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
Forward to use within Span class. More...
#include <span.h>
Inherits System::Details::SpanCore< const T, ReadOnlySpan< T >, Span< T > >.
Public Member Functions | |
| ReadOnlySpan () | |
| Constructs an empty read-only span. More... | |
| ReadOnlySpan (const Span< T > &span) | |
| Constructs a read-only span from a regular span. More... | |
| template<std::size_t N, typename T1 = T> | |
| ReadOnlySpan (const typename std::enable_if< std::is_same< T1, uint8_t >::value, char >::type(&array)[N]) | |
| Constructs a read-only span from a string literal. More... | |
Static Public Member Functions | |
| static ThisType | to_ReadOnlySpan (const typename BaseType::ArrayPtrT &array) |
| Converts an array to a ReadOnlySpan. More... | |
Forward to use within Span class.
Represents a read-only contiguous region of arbitrary memory.
| T | The type of elements in the span. This class provides a type-safe way to work with contiguous sequences of objects in a read-only manner. It can be used to wrap arrays, stack arrays, or raw pointers while maintaining bounds checking. The ReadOnlySpan doesn't own the memory it points to - it's just a view into existing memory. |
|
inline |
Constructs an empty read-only span.
|
inline |
Constructs a read-only span from a regular span.
| span | The span to create a read-only view of. |
|
inline |
Constructs a read-only span from a string literal.
| N | Literal size. |
| T1 | Serice SFINAE type. |
| array | The span to create a read-only view of. |
|
inlinestatic |
Converts an array to a ReadOnlySpan.
| array | The array to convert. |