| 70 | |
| 71 | public: |
| 72 | json_decoder(const allocator_type& alloc = allocator_type(), |
| 73 | const temp_allocator_type& temp_alloc = temp_allocator_type()) |
| 74 | : allocator_(alloc), |
| 75 | result_(), |
| 76 | name_(alloc), |
| 77 | item_stack_(alloc), |
| 78 | structure_stack_(temp_alloc) |
| 79 | { |
| 80 | item_stack_.reserve(1000); |
| 81 | structure_stack_.reserve(100); |
| 82 | structure_stack_.emplace_back(structure_type::root_t, 0); |
| 83 | } |
| 84 | |
| 85 | json_decoder(temp_allocator_arg_t, |
| 86 | const temp_allocator_type& temp_alloc = temp_allocator_type()) |