template <typename Context>
scn::basic_scan_args class

A view over a collection of scanning arguments (scan_arg_store).

Passed to scn::vscan, where it's automatically constructed from a scan_arg_store.

Constructors, destructors, conversion operators

basic_scan_args() defaulted constexpr
Construct a view over no arguments.
template <typename... Args>
basic_scan_args(scan_arg_store<Context, Args...>& store) constexpr

Public functions

auto get(std::size_t id) const -> basic_scan_arg<Context> constexpr
auto size() const -> std::size_t constexpr

Function documentation

template <typename Context>
template <typename... Args>
scn::basic_scan_args::basic_scan_args(scan_arg_store<Context, Args...>& store) constexpr

Construct a view over store.

Intentionally not explicit.

template <typename Context>
basic_scan_arg<Context> scn::basic_scan_args::get(std::size_t id) const constexpr

Returns basic_scan_arg at index id. Empty basic_scan_arg if there's no argument at index id.

template <typename Context>
std::size_t scn::basic_scan_args::size() const constexpr

Returns Number of arguments in *this.