daily pastebin goal
95%
SHARE
TWEET

Untitled

a guest Mar 18th, 2019 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class object_t
  2. {
  3.     struct element
  4.     {
  5.         element* next_;
  6.         element* prev_;
  7.         value v_;
  8.  
  9.         string_view
  10.         key() const noexcept;
  11.  
  12.         // varint key size
  13.         // char[] key name follows
  14.     };
  15.  
  16.     struct table
  17.     {
  18.         // number of values in the object
  19.         std::size_t size = 0;
  20.  
  21.         // number of buckets in table
  22.         std::size_t buckets = 0;
  23.  
  24.         // insertion-order list of all objects
  25.         element* head = nullptr;
  26.         element* tail = nullptr;
  27.  
  28.         // hash table entries follow
  29.     };
  30.  
  31.     table* p_ = nullptr;
  32.  
  33. public:
  34. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top