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 |
| Construct 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 |
| Assign from another cursor. Enabled only if Byte2* is convertible to Byte
|
|
constexpr Byte *& | pointer () noexcept |
| access underlying pointer. Might be useful in rare cases to initialize cursor with a particular value.
|
|
constexpr Byte * | pointer () const noexcept |
| access 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>>
Construct 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>>
Assign from another cursor. Enabled only if Byte2*
is convertible to Byte
- Template Parameters
-
- Parameters
-
other | cursor to assign from |
- Returns
*this
◆ pointer() [1/2]
access underlying pointer
- Returns
- underlying pointer
◆ pointer() [2/2]
access 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: