• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# basic_json::get_binary
2
3```cpp
4binary_t& get_binary();
5
6const binary_t& get_binary() const;
7```
8
9Returns a reference to the stored binary value.
10
11## Return value
12
13Reference to binary value.
14
15## Exception safety
16
17Strong exception safety: if an exception occurs, the original value stays intact.
18
19## Exceptions
20
21Throws [`type_error.302`](../../home/exceptions.md#jsonexceptiontype_error302) if the value is not binary
22
23## Complexity
24
25Constant.
26
27## Version history
28
29- Added in version 3.8.0.
30