🔥 consolidate documentation
This commit is contained in:
parent
fdef0dc860
commit
13d4e6bcf9
@ -2032,15 +2032,8 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
|||||||
return get<ValueType>();
|
return get<ValueType>();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/// @brief get a binary value
|
||||||
@return reference to the binary value
|
/// @sa https://json.nlohmann.me/api/basic_json/get_binary/
|
||||||
|
|
||||||
@throw type_error.302 if the value is not binary
|
|
||||||
|
|
||||||
@sa see @ref is_binary() to check if the value is binary
|
|
||||||
|
|
||||||
@since version 3.8.0
|
|
||||||
*/
|
|
||||||
binary_t& get_binary()
|
binary_t& get_binary()
|
||||||
{
|
{
|
||||||
if (!is_binary())
|
if (!is_binary())
|
||||||
@ -2051,7 +2044,8 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
|||||||
return *get_ptr<binary_t*>();
|
return *get_ptr<binary_t*>();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @copydoc get_binary()
|
/// @brief get a binary value
|
||||||
|
/// @sa https://json.nlohmann.me/api/basic_json/get_binary/
|
||||||
const binary_t& get_binary() const
|
const binary_t& get_binary() const
|
||||||
{
|
{
|
||||||
if (!is_binary())
|
if (!is_binary())
|
||||||
|
|||||||
@ -19519,15 +19519,8 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
|||||||
return get<ValueType>();
|
return get<ValueType>();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/// @brief get a binary value
|
||||||
@return reference to the binary value
|
/// @sa https://json.nlohmann.me/api/basic_json/get_binary/
|
||||||
|
|
||||||
@throw type_error.302 if the value is not binary
|
|
||||||
|
|
||||||
@sa see @ref is_binary() to check if the value is binary
|
|
||||||
|
|
||||||
@since version 3.8.0
|
|
||||||
*/
|
|
||||||
binary_t& get_binary()
|
binary_t& get_binary()
|
||||||
{
|
{
|
||||||
if (!is_binary())
|
if (!is_binary())
|
||||||
@ -19538,7 +19531,8 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
|||||||
return *get_ptr<binary_t*>();
|
return *get_ptr<binary_t*>();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @copydoc get_binary()
|
/// @brief get a binary value
|
||||||
|
/// @sa https://json.nlohmann.me/api/basic_json/get_binary/
|
||||||
const binary_t& get_binary() const
|
const binary_t& get_binary() const
|
||||||
{
|
{
|
||||||
if (!is_binary())
|
if (!is_binary())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user