|
ThinSQLite++
A thin, safe and convenient modern C++ wrapper for the SQLite API.
|
An efficient blob of zeroes of a given size. More...
Public Types | |
| using | element_type = const std::byte |
| using | value_type = std::byte |
| using | index_type = size_t |
| using | difference_type = ptrdiff_t |
| using | pointer = const std::byte * |
| using | const_pointer = const std::byte * |
| using | reference = const std::byte & |
| using | const_reference = const std::byte & |
| using | iterator = const_iterator |
| using | reverse_iterator = std::reverse_iterator<iterator> |
| using | const_reverse_iterator = std::reverse_iterator<const_iterator> |
An efficient blob of zeroes of a given size.
This class is an STL random-access container that returns 0 for all its elements. It simply stores blob size and doesn't allocate any memory.
SQLite contains optimized methods that operate on "blobs of zeroes" of a given size (e.g. sqlite3_bind_zeroblob). This class is used to pass "blobs of zeroes" to overloaded C++ methods (e.g. statement::bind(int, const zero_blob &)) to achieve the same effect in this library.