template <typename Context>
basic_scan_args class
A view over a collection of scanning arguments (scan_
).
Passed to scn::
, where it's automatically constructed from a scan_
.
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
template <typename... Args>
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_ at index id . Empty basic_ 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 . |
---|