1234567891011121314151617181920212223242526272829303132333435 |
- #ifndef BOOST_MYSQL_DETAIL_STRING_VIEW_OFFSET_HPP
- #define BOOST_MYSQL_DETAIL_STRING_VIEW_OFFSET_HPP
- #include <cstddef>
- namespace boost {
- namespace mysql {
- namespace detail {
- struct string_view_offset
- {
- std::size_t offset;
- std::size_t size;
- constexpr bool operator==(string_view_offset rhs) const noexcept
- {
- return offset == rhs.offset && size == rhs.size;
- }
- constexpr bool operator!=(string_view_offset rhs) const noexcept { return !(*this == rhs); }
- };
- }
- }
- }
- #endif
|