MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / is_string

Function is_string

lesson6-Segmentation/json.hpp:19095–19098  ·  view source on GitHub ↗

! @brief return whether value is a string This function returns true if and only if the JSON value is a string. @return `true` if type is string, `false` otherwise. @complexity Constant. @exceptionsafety No-throw guarantee: this member function never throws exceptions. @liveexample{The following code exemplifies `is_string()` for all JSON types.,is_string}

Source from the content-addressed store, hash-verified

19093 @since version 1.0.0
19094 */
19095 constexpr bool is_string() const noexcept
19096 {
19097 return m_type == value_t::string;
19098 }
19099
19100 /*!
19101 @brief return whether value is a binary array

Callers 4

is_primitiveFunction · 0.85
get_impl_ptrFunction · 0.85
eraseFunction · 0.85
swapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected