draconisplusplus/include/rfl/parsing/Parser_tuple.hpp
2024-06-08 15:53:06 -04:00

25 lines
641 B
C++

#ifndef RFL_PARSING_PARSER_TUPLE_HPP_
#define RFL_PARSING_PARSER_TUPLE_HPP_
#include "Parser_base.hpp"
#include "TupleParser.hpp"
namespace rfl {
namespace parsing {
template <class R, class W, class... Ts, class ProcessorsType>
requires AreReaderAndWriter<R, W, std::tuple<Ts...>>
struct Parser<R, W, std::tuple<Ts...>, ProcessorsType>
: public TupleParser<
R,
W,
/*_ignore_empty_containers=*/false,
/*_all_required=*/ProcessorsType::all_required_,
ProcessorsType,
Ts...> {};
} // namespace parsing
} // namespace rfl
#endif