MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / erase_internal

Function erase_internal

Source/external/json.hpp:21733–21745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21731 }
21732
21733 private:
21734 template < typename KeyType, detail::enable_if_t <
21735 detail::has_erase_with_key_type<basic_json_t, KeyType>::value, int > = 0 >
21736 size_type erase_internal(KeyType && key)
21737 {
21738 // this erase only works for objects
21739 if (JSON_HEDLEY_UNLIKELY(!is_object()))
21740 {
21741 JSON_THROW(type_error::create(307, detail::concat("cannot use erase() with ", type_name()), this));
21742 }
21743
21744 return m_value.object->erase(std::forward<KeyType>(key));
21745 }
21746
21747 template < typename KeyType, detail::enable_if_t <
21748 !detail::has_erase_with_key_type<basic_json_t, KeyType>::value, int > = 0 >

Callers 2

json.hppFile · 0.85
eraseFunction · 0.85

Calls 5

is_objectFunction · 0.85
createFunction · 0.85
concatFunction · 0.85
type_nameFunction · 0.85
endMethod · 0.80

Tested by

no test coverage detected