|
sparrow 2.2.1
C++20 idiomatic APIs for the Apache Arrow Columnar Format
|
A holder class that wraps a value and provides storage management. More...
#include <u8_buffer.hpp>
Public Types | |
| using | inner_type = T |
Public Member Functions | |
| template<class... Args> | |
| constexpr | holder (Args &&... args) noexcept |
| Constructs a holder with the given arguments forwarded to the wrapped value. | |
| constexpr T | extract_storage () &&noexcept |
| Extracts the storage by moving the wrapped value. | |
| constexpr const T & | storage () const noexcept |
| Gets a constant reference to the storage. | |
| constexpr T & | storage () noexcept |
| Gets a reference to the storage. | |
| constexpr void | assign (T &&other) |
| Assigns a new value to the storage. | |
Public Attributes | |
| T | value |
A holder class that wraps a value and provides storage management.
| T | The type of the value to hold. |
Definition at line 45 of file u8_buffer.hpp.
| using sparrow::detail::holder< T >::inner_type = T |
Definition at line 49 of file u8_buffer.hpp.
|
inlineconstexprnoexcept |
Constructs a holder with the given arguments forwarded to the wrapped value.
| Args | The argument types. |
| args | Arguments to forward to the value constructor. |
Definition at line 58 of file u8_buffer.hpp.
|
inlineconstexpr |
Assigns a new value to the storage.
| other | The value to assign. |
Definition at line 100 of file u8_buffer.hpp.
|
inlinenodiscardconstexprnoexcept |
Extracts the storage by moving the wrapped value.
Definition at line 70 of file u8_buffer.hpp.
|
inlinenodiscardconstexprnoexcept |
Gets a constant reference to the storage.
Definition at line 80 of file u8_buffer.hpp.
|
inlinenodiscardconstexprnoexcept |
Gets a reference to the storage.
Definition at line 90 of file u8_buffer.hpp.
| T sparrow::detail::holder< T >::value |
Definition at line 63 of file u8_buffer.hpp.