14938 {
14939 std::size_t array_index = 0ul;
14940 const std::size_t embedded_document_size = std::accumulate(std::begin(value), std::end(value), std::size_t(0), [&array_index](std::size_t result, const typename BasicJsonType::array_t::value_type & el)
14941 {
14943 });
14944 return sizeof(std::int32_t) + embedded_document_size + 1ul;
14945 }
static std::size_t calc_bson_element_size(const string_t &name, const BasicJsonType &j)
Calculates the size necessary to serialize the JSON value j with its name.