Mistake on this page?
Report an issue in GitHub or email us
Data Structures | Namespaces | Macros | Functions
ArrayView.h File Reference
#include <algorithm>
#include <stddef.h>
#include <stdint.h>
#include "platform/mbed_assert.h"

Go to the source code of this file.

Data Structures

struct  ArrayView< T, Size >
 Immutable view to an array. More...
 
struct  ArrayView< T,-1 >
 ArrayView specialisation that handle dynamic array size. More...
 

Namespaces

 ble
 Entry namespace for all BLE API definitions.
 

Macros

#define ARRAY_VIEW_DYNAMIC_SIZE   -1
 Special value for the Size parameter of ArrayView. More...
 

Functions

template<typename T , ptrdiff_t LhsSize, ptrdiff_t RhsSize>
bool operator== (const ArrayView< T, LhsSize > &lhs, const ArrayView< T, LhsSize > &rhs)
 Equality operator. More...
 
template<typename T , ptrdiff_t LhsSize, ptrdiff_t RhsSize>
bool operator!= (const ArrayView< T, LhsSize > &lhs, const ArrayView< T, LhsSize > &rhs)
 Not equal operator. More...
 
template<typename T , size_t Size>
ArrayView< T, Size > make_ArrayView (T(&elements)[Size])
 Generate an array view from a reference to a C/C++ array. More...
 
template<size_t Size, typename T >
ArrayView< T, Size > make_ArrayView (T *elements)
 Generate an array view from a pointer to a C/C++ array. More...
 
template<typename T >
ArrayView< T > make_ArrayView (T *array_ptr, size_t array_size)
 Generate an array view from a C/C++ pointer and the size of the array. More...
 
template<typename T , size_t Size>
ArrayView< const T, Size > make_const_ArrayView (T(&elements)[Size])
 Generate a const array view from a reference to a C/C++ array. More...
 
template<size_t Size, typename T >
ArrayView< const T, Size > make_const_ArrayView (const T *elements)
 Generate a const array view from a pointer to a C/C++ array. More...
 
template<typename T >
ArrayView< const T > make_const_ArrayView (T *array_ptr, size_t array_size)
 Generate a const array view from a C/C++ pointer and the size of the array. More...
 

Macro Definition Documentation

#define ARRAY_VIEW_DYNAMIC_SIZE   -1

Special value for the Size parameter of ArrayView.

If the type use this value then the size of the array is stored in the object at runtime.

Definition at line 44 of file ArrayView.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.