| open62541pp 0.19.0
    C++ wrapper of open62541 | 
#include <span.hpp>
View to a contiguous sequence of objects, similar to std::span in C++20. 
Spans are used to pass and return open62541 arrays without copy and to use them with the standard library algorithms. The view just holds two members: the pointer to T and the size, so it's lightweight and trivially copyable.
| T | Type of the array object, use const Tfor an immutable view | 
| Public Types | |
| using | element_type = T | 
| using | value_type = std::remove_cv_t< T > | 
| using | size_type = size_t | 
| using | difference_type = std::ptrdiff_t | 
| using | pointer = T * | 
| using | const_pointer = const T * | 
| using | reference = T & | 
| using | const_reference = const T & | 
| using | iterator = pointer | 
| using | const_iterator = const_pointer | 
| using | reverse_iterator = std::reverse_iterator< iterator > | 
| using | const_reverse_iterator = std::reverse_iterator< const_iterator > | 
| Public Member Functions | |
| constexpr | Span () noexcept=default | 
| constexpr | Span (T *data, size_t size) noexcept | 
| template<typename Container , typename = EnableIfHasSizeAndData<Container>> | |
| constexpr | Span (Container &container) noexcept | 
| template<typename Container , typename = EnableIfHasSizeAndData<Container>> | |
| constexpr | Span (const Container &container) noexcept | 
| constexpr | Span (std::initializer_list< value_type > values) noexcept | 
| constexpr void | swap (Span &other) noexcept | 
| constexpr size_t | size () const noexcept | 
| constexpr bool | empty () const noexcept | 
| constexpr pointer | data () const noexcept | 
| constexpr reference | operator[] (size_t index) const noexcept | 
| constexpr reference | at (size_t index) const | 
| constexpr reference | front () const noexcept | 
| constexpr reference | back () const noexcept | 
| constexpr iterator | begin () const noexcept | 
| constexpr iterator | end () const noexcept | 
| constexpr const_iterator | cbegin () const noexcept | 
| constexpr const_iterator | cend () const noexcept | 
| constexpr reverse_iterator | rbegin () const noexcept | 
| constexpr reverse_iterator | rend () const noexcept | 
| constexpr const_reverse_iterator | crbegin () const noexcept | 
| constexpr const_reverse_iterator | crend () const noexcept | 
| constexpr Span | subview (size_t offset, size_t count=(std::numeric_limits< std::size_t >::max)()) const noexcept | 
| constexpr Span | first (size_t count) const noexcept | 
| constexpr Span | last (size_t count) const noexcept | 
| Related Symbols | |
| (Note that these are not member symbols.) | |
| template<typename Container > | |
| Span (Container &) -> Span< typename Container::value_type > | |
| template<typename Container > | |
| Span (const Container &) -> Span< const typename Container::value_type > | |
| template<typename T , typename U , typename = detail::EnableIfEqualityComparable<T, U>> | |
| constexpr bool | operator== (Span< T > lhs, Span< U > rhs) | 
| template<typename T , typename U , typename = detail::EnableIfEqualityComparable<T, U>> | |
| constexpr bool | operator!= (Span< T > lhs, Span< U > rhs) | 
| using opcua::Span< T >::const_iterator = const_pointer | 
| using opcua::Span< T >::const_pointer = const T* | 
| using opcua::Span< T >::const_reference = const T& | 
| using opcua::Span< T >::const_reverse_iterator = std::reverse_iterator<const_iterator> | 
| using opcua::Span< T >::difference_type = std::ptrdiff_t | 
| using opcua::Span< T >::element_type = T | 
| using opcua::Span< T >::iterator = pointer | 
| using opcua::Span< T >::pointer = T* | 
| using opcua::Span< T >::reference = T& | 
| using opcua::Span< T >::reverse_iterator = std::reverse_iterator<iterator> | 
| using opcua::Span< T >::size_type = size_t | 
| using opcua::Span< T >::value_type = std::remove_cv_t<T> | 
| 
 | constexprdefaultnoexcept | 
| 
 | inlineconstexprnoexcept | 
| 
 | inlineconstexprnoexcept | 
| 
 | inlineconstexprnoexcept | 
| 
 | inlineconstexprnoexcept | 
Implicit constructor from an initializer list.
Only safe to use if std::initializer_list itself outlives the Span: 
| 
 | inlineconstexpr | 
Access element by index with bounds checking.
| std::out_of_range | If `index` >= size() | 
| 
 | inlineconstexprnoexcept | 
| 
 | inlineconstexprnoexcept | 
Definition at line 131 of file span.hpp.
Referenced by opcua::ByteString::ByteString(), opcua::Span< T >::operator==(), and opcua::Span< T >::rend().
| 
 | inlineconstexprnoexcept | 
Definition at line 139 of file span.hpp.
Referenced by opcua::Span< T >::crend().
| 
 | inlineconstexprnoexcept | 
Definition at line 143 of file span.hpp.
Referenced by opcua::Span< T >::crbegin().
| 
 | inlineconstexprnoexcept | 
| 
 | inlineconstexprnoexcept | 
| 
 | inlineconstexprnoexcept | 
Definition at line 102 of file span.hpp.
Referenced by opcua::Span< T >::at(), opcua::Span< T >::back(), opcua::Span< T >::begin(), opcua::Span< T >::cbegin(), opcua::Span< T >::cend(), opcua::Span< T >::end(), opcua::Span< T >::first(), opcua::Span< T >::front(), opcua::Span< T >::last(), opcua::Span< T >::operator[](), and opcua::Span< T >::subview().
| 
 | inlineconstexprnoexcept | 
Definition at line 98 of file span.hpp.
Referenced by opcua::Span< T >::back(), and opcua::Span< T >::front().
| 
 | inlineconstexprnoexcept | 
Definition at line 135 of file span.hpp.
Referenced by opcua::ByteString::ByteString(), opcua::Span< T >::operator==(), and opcua::Span< T >::rbegin().
| 
 | inlineconstexprnoexcept | 
| 
 | inlineconstexprnoexcept | 
| 
 | inlineconstexprnoexcept | 
| 
 | inlineconstexprnoexcept | 
| 
 | inlineconstexprnoexcept | 
| 
 | inlineconstexprnoexcept | 
| 
 | inlineconstexprnoexcept | 
Definition at line 94 of file span.hpp.
Referenced by opcua::ua::AddNodesRequest::AddNodesRequest(), opcua::ua::AddReferencesRequest::AddReferencesRequest(), opcua::ua::ApplicationDescription::ApplicationDescription(), opcua::Span< T >::at(), opcua::ua::AxisInformation::AxisInformation(), opcua::Span< T >::back(), opcua::ua::BrowseNextRequest::BrowseNextRequest(), opcua::ua::BrowseRequest::BrowseRequest(), opcua::ua::CallMethodRequest::CallMethodRequest(), opcua::ua::CallRequest::CallRequest(), opcua::Span< T >::cend(), opcua::ua::CreateMonitoredItemsRequest::CreateMonitoredItemsRequest(), opcua::ua::DeleteMonitoredItemsRequest::DeleteMonitoredItemsRequest(), opcua::ua::DeleteNodesRequest::DeleteNodesRequest(), opcua::ua::DeleteReferencesRequest::DeleteReferencesRequest(), opcua::ua::DeleteSubscriptionsRequest::DeleteSubscriptionsRequest(), opcua::Span< T >::empty(), opcua::Span< T >::end(), opcua::ua::EnumDefinition::EnumDefinition(), opcua::ua::EventFilter::EventFilter(), opcua::Span< T >::first(), opcua::Span< T >::last(), opcua::ua::ModifyMonitoredItemsRequest::ModifyMonitoredItemsRequest(), opcua::Span< T >::operator[](), opcua::ua::ReadRequest::ReadRequest(), opcua::ua::RegisterNodesRequest::RegisterNodesRequest(), opcua::ua::RelativePath::RelativePath(), opcua::ua::SetMonitoringModeRequest::SetMonitoringModeRequest(), opcua::ua::SetPublishingModeRequest::SetPublishingModeRequest(), opcua::ua::SetTriggeringRequest::SetTriggeringRequest(), opcua::Span< T >::Span(), opcua::Span< T >::subview(), opcua::ua::TranslateBrowsePathsToNodeIdsRequest::TranslateBrowsePathsToNodeIdsRequest(), opcua::ua::UnregisterNodesRequest::UnregisterNodesRequest(), and opcua::ua::WriteRequest::WriteRequest().
| 
 | inlineconstexprnoexcept | 
| 
 | inlineconstexprnoexcept | 
| 
 | related |