! @brief return whether type is primitive This function returns true if and only if the JSON type is primitive (string, number, boolean, or null). @return `true` if type is primitive (string, number, boolean, or null), `false` otherwise. @complexity Constant. @exceptionsafety No-throw guarantee: this member function never throws exceptions. @liveexample{The
| 2500 | @since version 1.0.0 |
| 2501 | */ |
| 2502 | constexpr bool is_primitive() const noexcept |
| 2503 | { |
| 2504 | return is_null() || is_string() || is_boolean() || is_number() || is_binary(); |
| 2505 | } |
| 2506 | |
| 2507 | /*! |
| 2508 | @brief return whether type is structured |
nothing calls this directly
no test coverage detected