]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/third_party/nlohmann-json/doc/mkdocs/docs/api/json_pointer/operator_slasheq.md
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / third_party / nlohmann-json / doc / mkdocs / docs / api / json_pointer / operator_slasheq.md
1 # <small>nlohmann::json_pointer::</small>operator/=
2
3 ```cpp
4 // (1)
5 json_pointer& operator/=(const json_pointer& ptr);
6
7 // (2)
8 json_pointer& operator/=(std::string token);
9
10 // (3)
11 json_pointer& operator/=(std::size_t array_idx)
12 ```
13
14 1. append another JSON pointer at the end of this JSON pointer
15 2. append an unescaped reference token at the end of this JSON pointer
16 3. append an array index at the end of this JSON pointer
17
18 ## Parameters
19
20 `ptr` (in)
21 : JSON pointer to append
22
23 `token` (in)
24 : reference token to append
25
26 `array_idx` (in)
27 : array index to append
28
29 ## Return value
30
31 1. JSON pointer with `ptr` appended
32 2. JSON pointer with `token` appended without escaping `token`
33 3. JSON pointer with `array_idx` appended
34
35 ## Complexity
36
37 1. Linear in the length of `ptr`.
38 2. Amortized constant.
39 3. Amortized constant.
40
41 ## Examples
42
43 ??? example
44
45 The example shows the usage of `operator/=`.
46
47 ```cpp
48 --8<-- "examples/json_pointer__operator_add.cpp"
49 ```
50
51 Output:
52
53 ```json
54 --8<-- "examples/json_pointer__operator_add.output"
55 ```
56
57 ## Version history
58
59 1. Added in version 3.6.0.
60 2. Added in version 3.6.0.
61 3. Added in version 3.6.0.