| 
    PMEMKV
    1.1.1-git1.gb02004c
    
   This is the C++ documentation for PMEMKV. 
   | 
 
Our brief std::string_view implementation. More...
#include </pmemkv/doc_update/pmemkv/src/libpmemkv.hpp>
Public Member Functions | |
| string_view () noexcept | |
| Default constructor with empty data.  More... | |
| string_view (const char *data, size_t size) | |
| Constructor initialized by data and its size.  More... | |
| string_view (const std::string &s) | |
| Constructor initialized by the string s.  More... | |
| string_view (const char *data) | |
| Constructor initialized by data.  More... | |
| string_view (const string_view &rhs) noexcept=default | |
| string_view & | operator= (const string_view &rhs) noexcept=default | 
| const char * | data () const noexcept | 
| Returns pointer to data stored in this pmem::kv::string_view.  More... | |
| std::size_t | size () const noexcept | 
| Returns count of characters stored in this pmem::kv::string_view data.  More... | |
| int | compare (const string_view &other) noexcept | 
| Compares this string_view with other.  More... | |
Private Attributes | |
| const char * | _data | 
| std::size_t | _size | 
Our brief std::string_view implementation.
If C++17's std::string_view implementation is not available, this one is used to avoid unnecessary string copying.
      
  | 
  inlinenoexcept | 
Default constructor with empty data.
      
  | 
  inline | 
Constructor initialized by data and its size.
| [in] | data | pointer to the C-like string (char *) to initialize with, it can contain null characters | 
| [in] | size | length of the given data | 
      
  | 
  inline | 
Constructor initialized by the string s.
| [in] | s | reference to the string to initialize with | 
      
  | 
  inline | 
Constructor initialized by data.
Size of the data will be set using std::char_traits<char>::length().
| [in] | data | pointer to C-like string (char *) to initialize with, it has to end with the terminating null character | 
      
  | 
  defaultnoexcept | 
      
  | 
  inlinenoexcept | 
Compares this string_view with other.
Works in the same way as std::basic_string::compare.
      
  | 
  inlinenoexcept | 
Returns pointer to data stored in this pmem::kv::string_view.
It may not contain the terminating null character.
      
  | 
  defaultnoexcept | 
      
  | 
  inlinenoexcept | 
Returns count of characters stored in this pmem::kv::string_view data.
      
  | 
  private | 
      
  | 
  private |