Represents cursor which is used in cursor-based API. Clients should not use undocumented methods.
More...
#include <sbepp.hpp>
|
|
using | byte_type = Byte |
| | same as Byte
|
| |
|
|
| cursor ()=default |
| | Construct a new cursor object initialized with nullptr
|
| |
| template<typename Byte2, typename = detail::enable_if_convertible_t<Byte2, Byte>> |
| constexpr | cursor (cursor< Byte2 > other) noexcept |
| | Constructs from another cursor. Enabled only if Byte2* is convertible to Byte*.
|
| |
| template<typename Byte2, typename = detail::enable_if_convertible_t<Byte2, Byte>> |
| constexpr cursor & | operator= (cursor< Byte2 > other) noexcept |
| | Assigns from another cursor. Enabled only if Byte2* is convertible to Byte
|
| |
| constexpr Byte *& | pointer () noexcept |
| | Returns underlying pointer. Might be useful in rare cases to initialize cursor with a particular value.
|
| |
| constexpr Byte * | pointer () const noexcept |
| | Returns underlying pointer.
|
| |
template<typename Byte>
class sbepp::cursor< Byte >
Represents cursor which is used in cursor-based API. Clients should not use undocumented methods.
- Template Parameters
-
◆ cursor()
template<typename Byte>
template<typename Byte2, typename = detail::enable_if_convertible_t<Byte2, Byte>>
Constructs from another cursor. Enabled only if Byte2* is convertible to Byte*.
- Template Parameters
-
- Parameters
-
| other | cursor to construct from |
◆ operator=()
template<typename Byte>
template<typename Byte2, typename = detail::enable_if_convertible_t<Byte2, Byte>>
Assigns from another cursor. Enabled only if Byte2* is convertible to Byte
- Template Parameters
-
- Parameters
-
| other | cursor to assign from |
- Returns
*this
◆ pointer() [1/2]
Returns underlying pointer.
- Returns
- underlying pointer
◆ pointer() [2/2]
Returns underlying pointer. Might be useful in rare cases to initialize cursor with a particular value.
- Returns
- a reference to underlying pointer
The documentation for this class was generated from the following file: