Skip to content

Commit 13120a4

Browse files
nodejs-github-botaduh95
authored andcommitted
deps: update simdjson to 4.1.0
PR-URL: #60542 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
1 parent 506b79e commit 13120a4

File tree

2 files changed

+7692
-109
lines changed

2 files changed

+7692
-109
lines changed

deps/simdjson/simdjson.cpp

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* auto-generated on 2025-09-29 20:34:35 -0700. version 4.0.7 Do not edit! */
1+
/* auto-generated on 2025-10-27 16:52:41 -0400. version 4.1.0 Do not edit! */
22
/* including simdjson.cpp: */
33
/* begin file simdjson.cpp */
44
#define SIMDJSON_SRC_SIMDJSON_CPP
@@ -3030,6 +3030,25 @@ concept container_but_not_string =
30303030
std::ranges::input_range<T> && !string_like<T> && !concepts::string_view_keyed_map<T>;
30313031

30323032

3033+
3034+
// Concept: Indexable container that is not a string or associative container
3035+
// Accepts: std::vector, std::array, std::deque (have operator[], value_type, not string_like)
3036+
// Rejects: std::string (string_like), std::list (no operator[]), std::map (has key_type)
3037+
template<typename Container>
3038+
concept indexable_container = requires {
3039+
typename Container::value_type;
3040+
requires !concepts::string_like<Container>;
3041+
requires !requires { typename Container::key_type; }; // Reject maps/sets
3042+
requires requires(Container& c, std::size_t i) {
3043+
{ c[i] } -> std::convertible_to<typename Container::value_type>;
3044+
};
3045+
};
3046+
3047+
3048+
// Variable template to use with std::meta::substitute
3049+
template<typename Container>
3050+
constexpr bool indexable_container_v = indexable_container<Container>;
3051+
30333052
} // namespace concepts
30343053

30353054

@@ -5047,7 +5066,8 @@ namespace internal {
50475066
{ INCOMPLETE_ARRAY_OR_OBJECT, "INCOMPLETE_ARRAY_OR_OBJECT: JSON document ended early in the middle of an object or array. This is a fatal and unrecoverable error." },
50485067
{ SCALAR_DOCUMENT_AS_VALUE, "SCALAR_DOCUMENT_AS_VALUE: A JSON document made of a scalar (number, Boolean, null or string) is treated as a value. Use get_bool(), get_double(), etc. on the document instead. "},
50495068
{ OUT_OF_BOUNDS, "OUT_OF_BOUNDS: Attempt to access location outside of document."},
5050-
{ TRAILING_CONTENT, "TRAILING_CONTENT: Unexpected trailing content in the JSON input."}
5069+
{ TRAILING_CONTENT, "TRAILING_CONTENT: Unexpected trailing content in the JSON input."},
5070+
{ OUT_OF_CAPACITY, "OUT_OF_CAPACITY: The capacity was exceeded, we cannot allocate enough memory."}
50515071
}; // error_messages[]
50525072

50535073
} // namespace internal

0 commit comments

Comments
 (0)