mrdocs::dom::LazyArray

LazyArray overloads

Synopses

Declared in <mrdocs/Dom/LazyArray.hpp>

Return a new dom::Array based on a lazy array implementation.

template<std::ranges::random_access_range T>
requires HasStandaloneValueFrom<std::ranges::range_value_t<T>>
Array
LazyArray(T const& arr);

Return a new dom::Array based on a FromValue context

template<
    std::ranges::random_access_range T,
    class Context>
requires HasValueFrom<std::ranges::range_value_t<T>, Context>
Array
LazyArray(
    T const& arr,
    Context const& ctx);

Return Value

  • A new dom::Array whose elements are the result of converting each element in the underlying range to a dom::Value.

  • A new dom::Array whose elements are the result of converting each element in the underlying range using the specified context.

Parameters

Name

Description

arr

The underlying range of elements.

ctx

The context used to convert each element to a dom::Value.

Created with MrDocs