pjson 1.0.0
A small, owning JSON value for C++11
Loading...
Searching...
No Matches
ByteDance::pjson::ValueDeleter Struct Reference

Stateless ownership for allocator-created nodes. Provenance is read from the node itself, so moving this pointer never transfers or owns the Allocator object. More...

#include <pjson.h>

Public Member Functions

void operator() (pjson *aValue) const noexcept
 Public API member operator; see the API overview for its contract.
 

Detailed Description

Stateless ownership for allocator-created nodes. Provenance is read from the node itself, so moving this pointer never transfers or owns the Allocator object.

Stateless deleter for owning roots returned by DOM parsing.

The deleter obtains allocator provenance from the value. It does not own or extend the allocator's lifetime.

Definition at line 104 of file pjson.h.

Member Function Documentation

◆ operator()()

void ByteDance::pjson::ValueDeleter::operator() ( pjson aValue) const
noexcept

Public API member operator; see the API overview for its contract.


The documentation for this struct was generated from the following file: