2024-05-31 22:59:00 -04:00
|
|
|
#ifndef RFL_REMOVEFIELDS_HPP_
|
|
|
|
#define RFL_REMOVEFIELDS_HPP_
|
|
|
|
|
|
|
|
#include <algorithm>
|
|
|
|
#include <tuple>
|
|
|
|
#include <type_traits>
|
|
|
|
|
|
|
|
#include "internal/StringLiteral.hpp"
|
|
|
|
#include "internal/remove_fields.hpp"
|
|
|
|
|
|
|
|
namespace rfl {
|
|
|
|
|
2024-06-08 14:10:59 -04:00
|
|
|
/// Recursively removes all of the fields signified by _names from the
|
|
|
|
/// NamedTupleType.
|
|
|
|
template <class NamedTupleType, internal::StringLiteral... _names>
|
2024-06-16 00:13:15 -04:00
|
|
|
using remove_fields_t =
|
|
|
|
typename internal::remove_fields<std::remove_cvref_t<NamedTupleType>, _names...>::type;
|
2024-05-31 22:59:00 -04:00
|
|
|
|
2024-06-08 14:10:59 -04:00
|
|
|
} // namespace rfl
|
2024-05-31 22:59:00 -04:00
|
|
|
|
2024-06-08 14:10:59 -04:00
|
|
|
#endif // RFL_REMOVEFIELDS_HPP_
|